dumb 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: dumb error (
/showthread.php?tid=281191)
dumb error -
a_big - 04.09.2011
Код:
C:\Program Files (x86)\Rockstar Games\server\gamemodes\bare.pwn(22) : error 001: expected token: ";", but found "public"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Код:
public OnPlayerConnect(playerid)
what could possibly be wrong
Re: dumb error -
[MWR]Blood - 04.09.2011
Add a ; at the end of the line before the OnPlayerConnect callback.
Re: dumb error -
SantarioLeone - 04.09.2011
Код:
public OnPlayerConnect(playerid);
Is what i think the proper code would be
Re: dumb error -
a_big - 04.09.2011
Quote:
Originally Posted by [MWR]Blood
Add a ; at the end of the line before the OnPlayerConnect callback.
|
randomly putting ; above OnPlayerConnect somehow fixed it
Re: dumb error -
[MG]Dimi - 04.09.2011
Quote:
Originally Posted by SantarioLeone
Код:
public OnPlayerConnect(playerid);
Is what i think the proper code would be
|
Thats empty statement (empty callback)
@a_big it's not about putting random things. On last used line before OnPlayerConnect you don't have ;