Help with TextDraw[Rep++]
#1

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
Reply
#2

Look up here https://sampforum.blast.hk/showthread.php?tid=349717
Reply
#3

If I do so that gives me a tons of errors
Reply
#4

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
            }
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)