29.05.2012, 08:46
Okay, it's early in the morning so clearly I'm too tired to script.
Definition:
What's wrong D:
EDIT: Oh wow. It's too early. Fixed! (no [MAX_PLAYERS] in definition :/)
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);
}
pawn Код:
new PlayerText:TD_RACE_RESULT[3];
EDIT: Oh wow. It's too early. Fixed! (no [MAX_PLAYERS] in definition :/)