Need help with error & warnings !
#1

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;
}
Reply
#2

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.
Reply
#3

Yep, thnks i got the error away
Reply
#4

I got them all away thanks.
Reply
#5

Nice, no problem
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)