SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 06/07/2013, 12:18 AM   #1
Hade.
Huge Clucker
 
Hade.'s Avatar
 
Join Date: Oct 2012
Location: Tallinn, Estonia
Posts: 210
Reputation: 16
Default Need help with error & warnings !

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

Code:
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 :

Code:
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;
}
__________________
Hade. is offline   Reply With Quote
Old 06/07/2013, 12:27 AM   #2
EiresJason
Gangsta
 
Join Date: Mar 2013
Location: Dublin.
Posts: 685
Reputation: 76
Default Re: Need help with error & warnings !

I think the error is appearing because this string is too long. Maybe try and shorten it to see if it works.
String:
Code:
"{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.
EiresJason is offline   Reply With Quote
Old 06/07/2013, 12:29 AM   #3
Hade.
Huge Clucker
 
Hade.'s Avatar
 
Join Date: Oct 2012
Location: Tallinn, Estonia
Posts: 210
Reputation: 16
Default Re: Need help with error & warnings !

Yep, thnks i got the error away
__________________
Hade. is offline   Reply With Quote
Old 06/07/2013, 12:31 AM   #4
Hade.
Huge Clucker
 
Hade.'s Avatar
 
Join Date: Oct 2012
Location: Tallinn, Estonia
Posts: 210
Reputation: 16
Default Re: Need help with error & warnings !

I got them all away thanks.
__________________
Hade. is offline   Reply With Quote
Old 06/07/2013, 02:01 AM   #5
EiresJason
Gangsta
 
Join Date: Mar 2013
Location: Dublin.
Posts: 685
Reputation: 76
Default Re: Need help with error & warnings !

Nice, no problem
EiresJason is offline   Reply With Quote
Old 06/07/2013, 03:26 AM   #6
SwisherSweet
Huge Clucker
 
SwisherSweet's Avatar
 
Join Date: Sep 2012
Location: Insideurmom
Posts: 492
Reputation: 68
Default Re: Need help with error & warnings !

also strcat can be good if you have really long dialog's...
http://wiki.sa-mp.com/wiki/Strcat
hope i helped...
__________________
retired owner of 2 servers...
SwisherSweet is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Warnings & 1 Error HardRock Scripting Help 0 02/06/2013 10:00 PM
Help Me Error And Warnings Team_PRO Scripting Help 4 14/11/2012 10:00 AM
Help 1 error, 2 warnings sanrock Scripting Help 4 26/04/2012 12:39 AM
Error + warnings Vibrate17 Help Archive 4 21/04/2011 12:04 PM
[NEED HELP] 1 Error alot of warnings. helldude Help Archive 12 23/08/2009 11:26 AM


All times are GMT. The time now is 05:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.