Errors on one line - 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: Errors on one line (
/showthread.php?tid=357178)
Errors on one line -
kaiks - 06.07.2012
The line is here:
pawn Код:
public OnPlayerConnect(playerid)
{
sdisplay[playerid] = TextDrawCreate(10.0,200.0," ");
And errors are here:
Код:
error 017: undefined symbol "sdisplay"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Re: Errors on one line -
DBan - 06.07.2012
You didn't create the variable... (I believe)
pawn Код:
new Text:sdisplay[MAX_PLAYERS];
Re: Errors on one line -
kaiks - 06.07.2012
Still the same
Re: Errors on one line -
DBan - 06.07.2012
Fixed my code, tested and it compiled successfully.
Re: Errors on one line - Jarnu - 06.07.2012
put that line on the top of the GM/FS after #include
pawn Код:
new sdisplay[MAX_PLAYERS];