24.10.2010, 15:50
I want to create car race in my server, i tryed and now i know what to do, but i don't know why i'm getting these errors:
And off course you will need to know these lines so 54th line is:
And 152th is:
Код:
C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(54) : error 055: start of function body without function header C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(152) : error 017: undefined symbol "cp1" C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(152) : warning 215: expression has no effect C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(152) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(152) : error 029: invalid expression, assumed zero C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(152) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
53.COMMAND:lenktynes(playerid, params[]); 54.{ 55.cp1[playerid] = SetPlayerRaceCheckpoint(playerid, 0, -2334.7681,-2179.3489,35.1945, -2143.2742,-2006.9039,95.0157, 7); 56.}
Код:
if (cp1[playerid] == 1)