How to create an optional parameter in a function
#1

FIXED.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)