errors in /staff command
#6

Quote:
Originally Posted by LarzI
Посмотреть сообщение
I think you mean function. You can do it three ways:
pawn Код:
PlayerName(playerid)

stock PlayerName(playerid)

forward PlayerName(playerid);
public PlayerName(playerid)
I encourage to use the first method unless you plan on using CallLocal/RemoteFunction or unless you're making an include or an FS. Stock is only useful if using the function is optional and/or you don't plan on using it. However, if you have a stock function in your gamemode because you don't plan using it, why even have it in the first place?
Sorry, i meant function, yes.

But, this case is pretty free, because if you use PlayerName regularly in your scripts, a stock can be useful for him. And, yes, i agree with you LarzI, i should have told him that.
Reply


Messages In This Thread
errors in /staff command - by Goldino - 28.01.2013, 05:56
Re: errors in /staff command - by denNorske - 28.01.2013, 06:05
Re: errors in /staff command - by Goldino - 28.01.2013, 06:23
Re: errors in /staff command - by denNorske - 28.01.2013, 07:03
Re: errors in /staff command - by LarzI - 28.01.2013, 07:25
Re: errors in /staff command - by denNorske - 28.01.2013, 07:35

Forum Jump:


Users browsing this thread: 2 Guest(s)