I need help
#10

Quote:
Originally Posted by Trawltrawl
Посмотреть сообщение
But you didn't type else (cough im embarresed right now)
[EDIT]:
Your script did work, but when i typed /ak47, and i had 0 money it said
"You don't have enough money!"
"You just bought an ak400"
And i had an ak400 with -100 money, so basicly your script doesn't work :P
That is because he failed a little. Here is his code (modified correctly):
pawn Код:
if (strcmp("/ak47", cmdtext, true, 5) == 0)
    {
        if(GetPlayerMoney(playerid) < 100) SendClientMessage(playerid, 0xFF0000AA,"You don't have enough money to buy an AK47!");
        else
        {
        GivePlayerWeapon(playerid, 30, 1000);
        GivePlayerMoney(playerid, -100);
        SendClientMessage(playerid, 0xFF0000AA,"You've bought an AK47!");
        }
    }
Reply


Messages In This Thread
I need help - by Trawltrawl - 07.04.2012, 14:29
Re: I need help - by Aira - 07.04.2012, 14:38
Re: I need help - by ivanVU - 07.04.2012, 14:41
Re: I need help - by Shabi RoxX - 07.04.2012, 14:42
Re: I need help - by Trawltrawl - 07.04.2012, 14:44
Re: I need help - by ivanVU - 07.04.2012, 14:45
Re: I need help - by Trawltrawl - 07.04.2012, 14:49
Re: I need help - by ivanVU - 07.04.2012, 14:52
Re: I need help - by Shabi RoxX - 07.04.2012, 14:56
Re: I need help - by DaRealShazz - 18.05.2012, 03:20

Forum Jump:


Users browsing this thread: 5 Guest(s)