How to create an optional parameter in a function
#2

pawn Код:
stock GivePlayerWantedLevel(playerid, type, targetid = INVALID_PLAYER_ID)
Then you can use it like so...
pawn Код:
GivePlayerWantedLevel(playerid, type, targetid);
//or
GivePlayerWantedLevel(playerid, type);
Reply


Messages In This Thread
How to create an optional parameter in a function - by Magic_Time - 13.08.2014, 03:56
Re: How to create an optional parameter in a function - by nickdodd25 - 13.08.2014, 04:02

Forum Jump:


Users browsing this thread: 2 Guest(s)