SA-MP Forums Archive
fatal error 107: too many error messages on one line - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: fatal error 107: too many error messages on one line (/showthread.php?tid=621033)



fatal error 107: too many error messages on one line - linhpro200294 - 06.11.2016

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


Re: fatal error 107: too many error messages on one line - Hansrutger - 06.11.2016

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. ^^