06.05.2010, 16:16
can anyone explain the diffrence between these
These are untested as I'm writing them now.
can anyone tell me the diffrence between these and whats more efficent? Thanks.
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;
}