Pawno keeps on crashing
#3

pawn Код:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
That should be in the "OnPlayerSelectedMenuRow" callback ^^.

pawn Код:
GivePlayerMoney(playerid, -750);
      else
            {
            SendClientMessage(playerid, 0xFFFFFFFF, "You don't have enough money for this item!");
    }
"else" to what, you have no other statement. Get rid of all these lines:

pawn Код:
else
            {
            SendClientMessage(playerid, 0xFFFFFFFF, "You don't have enough money for this item!");
Then after the last case (6) put this:

pawn Код:
default : SendClientMessage(playerid, 0xFFFFFFFF, "You don't have enough money for this item!");
The above line is for anything which isn't a listed case (anything not 0 to 6), if you need more info about switch statements then consult the Wiki or Pawn_Lang.pdf.
Reply


Messages In This Thread
Pawno keeps on crashing - by Bas_NL - 13.06.2009, 10:05
Re: Pawno keeps on crashing - by JoeDaDude - 13.06.2009, 10:07
Re: Pawno keeps on crashing - by Donny_k - 13.06.2009, 10:20
Re: Pawno keeps on crashing - by Bas_NL - 13.06.2009, 10:27
Re: Pawno keeps on crashing - by Donny_k - 13.06.2009, 10:32
Re: Pawno keeps on crashing - by Bas_NL - 13.06.2009, 10:44
Re: Pawno keeps on crashing - by ZaZa - 13.06.2009, 10:51
Re: Pawno keeps on crashing - by Bas_NL - 13.06.2009, 11:19
Re: Pawno keeps on crashing - by Bas_NL - 13.06.2009, 15:14

Forum Jump:


Users browsing this thread: 4 Guest(s)