Help with TextDraw[Rep++] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with TextDraw[Rep++] (
/showthread.php?tid=404253)
Help with TextDraw[Rep++] -
Rgaming - 02.01.2013
Hi I need help with textdraws.
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.
And thease are the lines
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
}
Hope you can help me
Re: Help with TextDraw[Rep++] -
aslan890 - 02.01.2013
Look up here
https://sampforum.blast.hk/showthread.php?tid=349717
Re: Help with TextDraw[Rep++] -
Rgaming - 02.01.2013
If I do so that gives me a tons of errors
Re: Help with TextDraw[Rep++] -
DaRk_RaiN - 02.01.2013
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++ )
{
// 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
}
}