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
#2

Wouldn't gTeam [playerid] ?
Reply
#3

OMG thanks why do i keep doing that?!? lol anyway now got 4 errors
Код:
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


4 Errors.
Reply
#4

Show us line 2108?
Reply
#5

add on line 2108 in the end: ); but not )
Reply
#6

line 2108
Код:
GetPlayerMoney(playerid, < 1000) return SendClientMessage(playerid, -1, "You need $1000 for this");
Reply
#7

pawn Код:
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, -1, "You need $1000 for this");
Reply
#8

same errors :/
Reply
#9

Show the line 2107
Reply
#10

its a bracket so ill show it and line 2106
pawn Код:
if(gTeam[playerid] == DRUG)
                    {
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)