im crap with dialog response
#1

Hello, i dont know what it is with me and dialog response but im ALWAYS getting errors using it lol anyway enough of my life story :YAWN: here are my errors if someone will kindly help
Код:
C:\Users\iphone\Desktop\Pawn Scripting\gamemodes\Sfcnr.pwn(2106) : error 033: array must be indexed (variable "gTeam")
C:\Users\iphone\Desktop\Pawn Scripting\gamemodes\Sfcnr.pwn(2108) : error 029: invalid expression, assumed zero
C:\Users\iphone\Desktop\Pawn Scripting\gamemodes\Sfcnr.pwn(2108) : warning 215: expression has no effect
C:\Users\iphone\Desktop\Pawn Scripting\gamemodes\Sfcnr.pwn(2108) : error 001: expected token: ";", but found ")"
C:\Users\iphone\Desktop\Pawn Scripting\gamemodes\Sfcnr.pwn(2108) : error 029: invalid expression, assumed zero
C:\Users\iphone\Desktop\Pawn Scripting\gamemodes\Sfcnr.pwn(2108) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
pawn Код:
if(dialogid == DIALOG_DRUGS)
    {
        if(!response) return SendClientMessage(playerid, -1, "You have closed the drug menu");
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                    if(gTeam == DRUG)
                    {
                        GetPlayerMoney(playerid, < 1000) return SendClientMessage(playerid, -1, "You need $1000 for this");
                        GivePlayerMoney(playerid, -1000);
                        SendClientMessage(playerid, -1, "Thank you for buying from quicky drug store");
                        return 1;
                    }
                    else if(!gTeam == DRUG)
                    {
                        SendClientMessage(playerid, -1, "Your not a drug dealer you cannot use this store");
                        return 1;
                    }
                }
                case 1:
                {
                    print("test");
                    return 1;
                }
                case 2:
                {
                    print("LOLOLDDDD");
                    return 1;
                }
            }
        }
    }
xDD sorry about the prints i was just putting them there cause im putting the other code there after errors gone
Reply


Messages In This Thread
im crap with dialog response - by thefatshizms - 21.07.2012, 22:10
Re: im crap with dialog response - by ViniBorn - 21.07.2012, 22:15
Re: im crap with dialog response - by thefatshizms - 21.07.2012, 22:19
Re: im crap with dialog response - by Why - 21.07.2012, 22:21
Re: im crap with dialog response - by Erpis - 21.07.2012, 22:23
Re: im crap with dialog response - by thefatshizms - 21.07.2012, 22:29
Re: im crap with dialog response - by ViniBorn - 21.07.2012, 22:33
Re: im crap with dialog response - by thefatshizms - 21.07.2012, 22:35
Re: im crap with dialog response - by ViniBorn - 21.07.2012, 22:41
Re: im crap with dialog response - by thefatshizms - 21.07.2012, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)