Which function type should i choose?
#1

Which function type should i choose?

For example i want to make teleport player function:
TeleportPlayerToMyPoint(playerid)

Should i choose a stock, forward, or simple private function(or other)?
Reply
#2

Neither. Plain. No keywords. A custom function should only be public if it's on a timer. It should only be stock if it's in an include.
Reply
#3

pawn Код:
new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    SetPlayerPos(ID,x+1,y,z);
    SetPlayerVirtualWorld(ID,GetPlayerVirtualWorld(playerid));
    SetPlayerInterior(ID,GetPlayerInterior(playerid));
you don't need to make a stock or anything for that really
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)