What is wrong here? - 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: What is wrong here? (
/showthread.php?tid=308969)
What is wrong here? -
[NOR]John - 05.01.2012
This is what it says in my pawno
pawn Код:
}
public OnPlayerConnect(playerid)
GameTextForPlayer(playerid,"~w~Galaxy Trucking Server",5000,5);
return 1;
)
And what shows up when i compile
pawn Код:
public.pwn(206) : error 010: invalid function or declaration
What's wrong?
Re: What is wrong here? -
Norck - 05.01.2012
It should be like this:
pawn Код:
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~Galaxy Trucking Server",5000,5);
return 1;
}
Re: What is wrong here? -
[NOR]John - 05.01.2012
Quote:
Originally Posted by Norck
It should be like this:
pawn Код:
public OnPlayerConnect(playerid) { GameTextForPlayer(playerid,"~w~Galaxy Trucking Server",5000,5); return 1; }
|
Ooh.. Ofcourse. Thanks :P
Re: What is wrong here? -
Mrki_Drakula - 05.01.2012
To make it clear, you should allways put your code between to brackets "{ and }" so, those brackets actually mean group of code that will be called under your public, stock, or whatever section. So, watch out next time.