21.07.2012, 22:10
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
xDD sorry about the prints i was just putting them there cause im putting the other code there after errors gone
Код:
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;
}
}
}
}