salut dark_evan,
bon alors je ne suis pas expert en textdraw.... j'en ai fait que 2 sur mon serveur ::)... mais je vais essayer:
pbbar[0] = TextDrawCreate(500.0, 59.0, ""); <<<----
TextDrawUseBox(pbbar[0], true);
TextDrawBoxColor(pbbar[0], COLOR_LIGHTBLUE);
TextDrawSetShadow(pbbar[0],0);
TextDrawTextSize(pbbar[0], 600, 0); << perso, j'ai eu de la difficulté avec cette fonction, tu serais mieu de la revoir plus tard...
pbbar[1] = TextDrawCreate(500.0, 59.0, "");
TextDrawUseBox(pbbar[1], true);
TextDrawBoxColor(pbbar[1], COLOR_LIGHTBLUE);
TextDrawSetShadow(pbbar[1],0);
TextDrawTextSize(pbbar[1], 586, 0);
pbbar[2] = TextDrawCreate(500.0, 59.0, "");
TextDrawUseBox(pbbar[1], true);
TextDrawBoxColor(pbbar[1], COLOR_LIGHTBLUE);
TextDrawSetShadow(pbbar[1],0);
TextDrawTextSize(pbbar[1], 566, 0);
pbbar[3] = TextDrawCreate(500.0, 59.0, "");
TextDrawUseBox(pbbar[1], true);
TextDrawBoxColor(pbbar[1], COLOR_LIGHTBLUE);
TextDrawSetShadow(pbbar[1],0);
TextDrawTextSize(pbbar[1], 556, 0);
pbbar[4] = TextDrawCreate(500.0, 59.0, "");
TextDrawUseBox(pbbar[1], true);
TextDrawBoxColor(pbbar[1], COLOR_LIGHTBLUE);
TextDrawSetShadow(pbbar[1],0);
TextDrawTextSize(pbbar[1], 550, 0);
SetTimer("pbbar",250,1);euh... juste comme ça, tu avais mit o (comme dans allophone) au lieu d'un zéro dans le premier texte...
et autre question... pourquoi tu le refait 4 fois?, tu aurais mieu fait de faire une boucle étant donné que tu te sert d'un array, alors voici ma recommandation...
for(new i; i< sizeof(pbbar); i++){
pbbar[i] = TextDrawCreate(500.0, 59.0, ""); <<<----
TextDrawUseBox(pbbar[i], true);
TextDrawBoxColor(pbbar[i], COLOR_LIGHTBLUE);
}
SetTimer("pbbar",250,1);
en espérant t'avoir aidé! ;)
++sim++