Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by BBAT
written in 30 sec
pawn Код:
stock position(playerid) { new FLoat:lolA, Float:lolB, Float:lolC GetPlayerPos(playeridm lolA, lolB, lolC); }
stock heal(playerid) { SetPlayerHealth(playerid, 100); }
stock kill(playerid) { SetPlayerHealth(playerid, 0); }
stock armored(playerid) { SetPlayerArmor(playerid, 100); }
stock unarmored(playerid) { SetPlayerArmor(playerid, 0); }
stock cj(playerid) { SetPlayerSkin(playerid, 1); }
stock name(playerid) { new lolname[MAX_PLAYER_NAME]; GetPlayerName(playerid, lolname, sizeof(lolname)); }
|
Your name and position functions do the operation but return nothing, so if you execute name(playerid), nothing will be returned, as with the position function, you're not returning the position, you're just saving them in three different floats.