SA-MP Forums Archive
Tuortial ! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tuortial ! (/showthread.php?tid=246684)



Tuortial ! - Alex.Cone - 05.04.2011

I have tryed to make tuorital when somebody for first time conncet on server . And I have tryed to make something but i have one error :

Код:
forward mypublicfunction(playerid);
public function(playerid)
{
SendClientMessage(playerid, 0xFFFF00AA, "You are first time connceted ON THIS SERVER "  )
return 1;
}



Re: Tuortial ! - Joe Staff - 05.04.2011

It generally helps if you tell us what your error is, but from the code you've given us, you're missing a ';', at the end of Sendclientmessage

Also your forward has to have the same name as your callback
pawn Код:
forward mypublicfunction(playerid);
public mypublicfunction(playerid)
{
}



Re: Tuortial ! - Alex.Cone - 05.04.2011

Код:
C:\DOCUME~1\Emrah\Desktop\BONECO~1\GAMEMO~1\RPB.pwn(488) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This si error .


Re: Tuortial ! - LZLo - 05.04.2011

PHP код:
forward mypublicfunction(playerid);
public function(
playerid)
{
SendClientMessage(playerid0xFFFF00AA"You are first time connceted ON THIS SERVER " );
return 
1;