Whats the diffrent betweewn public and .. - 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: Whats the diffrent betweewn public and .. (
/showthread.php?tid=146286)
Whats the diffrent betweewn public and .. -
Cem - 06.05.2010
can anyone explain the diffrence between these
These are untested as I'm writing them now.
pawn Код:
Slap(playerid)
{
new Float:x,Float:y,Floatz, string[50];
GetPlayerPos(playerid, x,y,z)
SetPlayerPos(playerid, x,y,z+1);
format(string, sizeof(string), "You was slapped by %s", slapper);
SendClientMessage(playerid, color, string);
return 1;
}
pawn Код:
forward Slap(playerid);
public Slap(playerid)
{
new Float:x,Float:y,Floatz, string[50];
GetPlayerPos(playerid, x,y,z)
SetPlayerPos(playerid, x,y,z+1);
format(string, sizeof(string), "You was slapped by %s", slapper);
SendClientMessage(playerid, color, string);
return 1;
}
can anyone tell me the diffrence between these and whats more efficent? Thanks.
Re: Whats the diffrent betweewn public and .. -
Killa_ - 06.05.2010
http://forum.sa-mp.com/index.php?topic=170818.0