Whats the diffrent betweewn public and ..
#1

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.
Reply
#2

http://forum.sa-mp.com/index.php?topic=170818.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)