fatal error 107: too many error messages on one line
#1

Quote:

{
if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, DIALOG_TRADEVEHICLE, DIALOG_STYLE_INPUT,"{FF0000}Cash","{FF0000}Chi co the nhap so lieu !\n{FFFFFF}Hay nhap so luong tien mat bu them vao day.","Xong","Huy bo");
new amount = strval(inputtext);
if(PlayerInfo[playerid][pCash] < amount) return ShowPlayerDialog(playerid, DIALOG_TRADEVEHICLE, DIALOG_STYLE_INPUT,"{FF0000}Cash","{FF0000}Ban khong co nhieu tien mat nhu da nhap !\n{FFFFFF}Hay nhap so luong tien mat bu them vao day.","Xong","Huy bo");
if(amount > 0)
{
PlayerInfo[playerid][TradeItems][1] = amount;
CheckTradeInfo(playerid);
}
else ShowPlayerDialog(playerid, DIALOG_TRADEVEHICLE, DIALOG_STYLE_INPUT,"{FF0000}Cash","{FF0000}So luong tien mat phai > 0 !\n{FFFFFF}Hay nhap so luong tien mat bu them vao day.","Xong","Huy bo");
}

Quote:

./includes/gta-ace.pwn(98901) : warning 213: tag mismatch
./includes/gta-ace.pwn(109646) : warning 213: tag mismatch
./includes/gta-ace.pwn(109646) : warning 215: expression has no effect
./includes/gta-ace.pwn(109646) : error 001: expected token: ";", but found "["
./includes/gta-ace.pwn(109646) : error 029: invalid expression, assumed zero
./includes/gta-ace.pwn(109646) : warning 215: expression has no effect
./includes/gta-ace.pwn(109646) : error 001: expected token: ";", but found "]"
./includes/gta-ace.pwn(109646) : fatal error 107: too many error messages on one line

Help me
Reply
#2

I'm guessing this is the line?
PlayerInfo[playerid][TradeItems][1] = amount;

Go back to your declaration of it and see how it's built up, perhaps something went wrong there as it seems that it doesn't want to actually find that [1] but instead thought of finding ";".

Only a theory though, I don't know. ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)