20.06.2010, 16:06
Whats the difference between using 'stock' and using 'public' infront of a function ?
Originally Posted by Kyosaur!!
Stock doesnt give warnings when the function isnt used. If you compile your script, and it doesnt use the function, it simply wont be included.
|
Originally Posted by ♂ Antonio [G-RP
]
Quote:
|
stock playername(playerid) { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); return pname; }
Originally Posted by [MWR
Niixie ]
if you want to return other things than numbers, e.g. name. then you use stock e.g. Код:
stock playername(playerid) { new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); return pname; } |