SA-MP Forums Archive
[FIXED]Invisible error ¬_¬ - 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: [FIXED]Invisible error ¬_¬ (/showthread.php?tid=346597)



[FIXED]Invisible error ¬_¬ - MP2 - 29.05.2012

Okay, it's early in the morning so clearly I'm too tired to script.

Quote:

C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\MS.pwn(23519) : error 001: expected token: ",", but found "["
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\MS.pwn(23519) : error 029: invalid expression, assumed zero
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\MS.pwn(23519) : warning 215: expression has no effect
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\MS.pwn(23519) : error 001: expected token: ";", but found "]"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\MS.pwn(23519) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

pawn Код:
if(oldstate == 2 && GetPVarInt(playerid, "race_result"))
{
    PlayerTextDrawDestroy(playerid, TD_RACE_RESULT[playerid][0]); // Line 23519
    PlayerTextDrawDestroy(playerid, TD_RACE_RESULT[playerid][1]);
    PlayerTextDrawDestroy(playerid, TD_RACE_RESULT[playerid][2]);
    SetPVarInt(playerid, "race_result", 0);
}
Definition:

pawn Код:
new PlayerText:TD_RACE_RESULT[3];
What's wrong D:


EDIT: Oh wow. It's too early. Fixed! (no [MAX_PLAYERS] in definition :/)