02.01.2013, 13:34
Hi I need help with textdraws.
This is the error
Error
And thease are the lines
Pawno
Hope you can help me
This is the error
Error
Код:
C:\Documents and Settings\Georg\Desktop\Sampservud\Copy of Script\gamemodes\rp.pwn(18090) : error 017: undefined symbol "i" C:\Documents and Settings\Georg\Desktop\Sampservud\Copy of Script\gamemodes\rp.pwn(18108) : error 017: undefined symbol "i" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Pawno
Код:
// kьtus
if(fMeter[playerid] && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new string[64];
format(string,sizeof(string),"~w~Fuel: ~r~~h~%d/~w~100%", Fuel[GetPlayerVehicleID(playerid)]);
TextDrawSetString(kytuse[i], string);//Error line
}
//Spidokas
if(Speedo[playerid] && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new string[64], speed = GetVehicleSpeed(GetPlayerVehicleID(playerid), 0);
format(string,sizeof(string),"~w~Speed: ~g~~h~%d ~w~KM/h.", speed);
TextDrawSetString(spidoka[i], string);//error line
}

