Why does /smokeweed work when got no weed?
#7

Quote:
Originally Posted by [CG]Milito
Посмотреть сообщение
Then, just add another if clause & a new parameter to your command

New parameter:

PHP код:
new ammount
Like this :

PHP код:
if(GetPlayerWeed(playerid) < ammount)
{
    
SendClienMessage(playerid,-1,"You don't have enough weed!");
}
else
{
//////If the player has enough weed, run code

Just added this, but I can still /smokeweed as much as I want
Reply


Messages In This Thread
Why does /smokeweed work when got no weed? - by Josh_Main - 29.09.2014, 16:48
Re: Why does /smokeweed work when got no weed? - by DavidBilla - 29.09.2014, 17:14
Re: Why does /smokeweed work when got no weed? - by Kyance - 29.09.2014, 17:31
Re: Why does /smokeweed work when got no weed? - by Josh_Main - 30.09.2014, 02:31
Re: Why does /smokeweed work when got no weed? - by Josh_Main - 30.09.2014, 02:35
Re: Why does /smokeweed work when got no weed? - by [CG]Milito - 30.09.2014, 03:23
Re: Why does /smokeweed work when got no weed? - by Josh_Main - 01.10.2014, 05:57
Re: Why does /smokeweed work when got no weed? - by Stinged - 01.10.2014, 06:05

Forum Jump:


Users browsing this thread: 1 Guest(s)