SA-MP Forums Archive
Need help with error & warnings ! - 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: Need help with error & warnings ! (/showthread.php?tid=448815)



Need help with error & warnings ! - Hade. - 05.07.2013

Hello i have 1 error and a few warnings, and i need your help :S

Код:
D:\STAFF\GM\gamemodes\lsrctest.pwn(1366) : error 075: input line too long (after substitutions)
D:\STAFF\GM\gamemodes\lsrctest.pwn(2181) : warning 203: symbol is never used: "GunNames"
D:\STAFF\GM\gamemodes\lsrctest.pwn(2181) : warning 203: symbol is never used: "GunObjects"
D:\STAFF\GM\gamemodes\lsrctest.pwn(2181) : warning 203: symbol is never used: "Name"
D:\STAFF\GM\gamemodes\lsrctest.pwn(2181) : warning 203: symbol is never used: "dGunData"
D:\STAFF\GM\gamemodes\lsrctest.pwn(2181) : warning 203: symbol is never used: "randomINT"
Error line :

Код:
CMD:piloodiabi(playerid)
{
    ShowPlayerDialog(playerid, 9852, DIALOG_STYLE_MSGBOX, "Piloodi abi", "{FF0000} Piloodi abi\n\n{00FF00}/tццle {0000FF}-> {FFFFFF}Kasuta commandit lennukis, et tццle asuda.\n{00FF00}/lahkutццlt {0000FF}-> {FFFFFF}Lahku piloodi tццlt.\n{00FF00}/aksepteeri [tцц/lahku] {0000FF}-> {FFFFFF}Aksepteeri vхi lahku tццkohast.\n{00FF00}/liitu {0000FF}-> {FFFFFF}Olles lennuki pickupis ning kirjutades /liitu, saad alustada piloodina tццga.\n{00FF00}/piloodiabi {0000FF}-> {FFFFFF}Nдitab seda abi dialoogi.", "Valmis", "");
    return 1;
}



Re: Need help with error & warnings ! - EiresJason - 05.07.2013

I think the error is appearing because this string is too long. Maybe try and shorten it to see if it works.
String:
Код:
"{FF0000} Piloodi abi\n\n{00FF00}/tццle {0000FF}-> {FFFFFF}Kasuta commandit lennukis, et tццle asuda.\n{00FF00}/lahkutццlt {0000FF}-> {FFFFFF}Lahku piloodi tццlt.\n{00FF00}/aksepteeri [tцц/lahku] {0000FF}-> {FFFFFF}Aksepteeri vхi lahku tццkohast.\n{00FF00}/liitu {0000FF}-> {FFFFFF}Olles lennuki pickupis ning kirjutades /liitu, saad alustada piloodina tццga.\n{00FF00}/piloodiabi {0000FF}-> {FFFFFF}Nдitab seda abi dialoogi."
To remove the errors; all you have to do is remove the symbols. Eg: "GunObjects" was created in your script but you never actually used it anywhere.
Control+F and search the words and then remove or comment them out using '//' and see does that fix your error and warnings.


Re: Need help with error & warnings ! - Hade. - 05.07.2013

Yep, thnks i got the error away


Re: Need help with error & warnings ! - Hade. - 05.07.2013

I got them all away thanks.


Re: Need help with error & warnings ! - EiresJason - 06.07.2013

Nice, no problem


Re: Need help with error & warnings ! - SwisherSweet - 06.07.2013

also strcat can be good if you have really long dialog's...
https://sampwiki.blast.hk/wiki/Strcat
hope i helped...