Creating a new function
#8

Quote:
Originally Posted by awsomedude
Посмотреть сообщение
pawn Код:
GetPlayerWeed(playerid) return Weed[playerid];
That will return how much weed the player has.
Will I still need this?

pawn Код:
GetPlayerWeed(playerid, amount)
{
    new amount;
    if(Weed[playerid] = amount;         // need to fix
    return amount;
}
Reply


Messages In This Thread
Creating a new function - by Josh_Main - 29.09.2014, 14:57
Re: Creating a new function - by MasonSFW - 29.09.2014, 15:05
Re: Creating a new function - by Josh_Main - 29.09.2014, 15:12
Re: Creating a new function - by Stinged - 29.09.2014, 15:21
Re: Creating a new function - by Josh_Main - 29.09.2014, 15:25
Re: Creating a new function - by awsomedude - 29.09.2014, 15:27
Re: Creating a new function - by Stinged - 29.09.2014, 15:31
Re: Creating a new function - by Josh_Main - 29.09.2014, 16:26
Re: Creating a new function - by DavidBilla - 29.09.2014, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)