24.06.2012, 16:05
criei esse cod
for(new C = 0; C < MAX_PLAYERS; C++)
{
matou[C] = TextDrawCreate(20.000000, 186.000000, "_");
TextDrawBackgroundColor(matou[C], 255);
TextDrawFont(matou[C], 2);
TextDrawLetterSize(matou[C], 0.260000, 1.200000);
TextDrawColor(matou[C], -1);
TextDrawSetOutline(matou[C], 0);
TextDrawSetProportional(matou[C], 1);
TextDrawSetShadow(matou[C], 1);
}
[/pawn]
o proble й que fica sempre em zero
PHP код:
SetTimer("att2", 1000, true);
pawn Код:
forward att2(playerid);
public att2(playerid)
{
for(new C = 0; C < MAX_PLAYERS; C++)
{
new Str2[15];
format(Str2, sizeof(Str2), "Matou: %d", PlayerDados[playerid][Matou]);
TextDrawSetString(matou[C], Str2);
}
return 1;
}[pawn]
{
matou[C] = TextDrawCreate(20.000000, 186.000000, "_");
TextDrawBackgroundColor(matou[C], 255);
TextDrawFont(matou[C], 2);
TextDrawLetterSize(matou[C], 0.260000, 1.200000);
TextDrawColor(matou[C], -1);
TextDrawSetOutline(matou[C], 0);
TextDrawSetProportional(matou[C], 1);
TextDrawSetShadow(matou[C], 1);
}
[/pawn]
o proble й que fica sempre em zero