SA-MP Forums Archive
getting 1 error - 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: getting 1 error (/showthread.php?tid=608533)



getting 1 error - hardiksingh5 - 02.06.2016

error 001: expected token: "}", but found "{"


Re: getting 1 error - Deroxi - 02.06.2016

Show us your script, I cant see inside of your head


Re: getting 1 error - hardiksingh5 - 02.06.2016

PHP код:
{"[AutoMessage] If you are ever need help ask admin or ask in main chat - use /commands"},
    {
"[AutoMessage] If you saw something bugged in the server report it now at forums"},
    {
"[AutoMessage] Check out our forums for the latest/upcoming updates! /forums"},
    {
"[AutoMessage] Do not give any login details to anyone! Staff of Al will not ask for login details!"},
    {
"[AutoMessage] Found an hacker or something breaking the rules /report or report it at forums! "},
    {
"[AutoMessage] Hackers/Cheaters will not get unbanned only with a special reason or proof!"}
 
this line is bugged{"[AutoMessage] If you guys need any help you can freely ask the admins also they will surely help you"}
}
{
enum TLocation




Re: getting 1 error - Konstantinos - 02.06.2016

- At the end you need to add a semicolon.
- An enumerator for the Messages array is not needed and neither the extra brackets.
- You have an open bracket before enum TLocation.
- You forgot a comma at pre-last.

PHP код:
new const Messages[][] =
{
    
"[AutoMessage] If you are ever need help ask admin or ask in main chat - use /commands",
    
"[AutoMessage] If you saw something bugged in the server report it now at forums",
    
"[AutoMessage] Check out our forums for the latest/upcoming updates! /forums",
    
"[AutoMessage] Do not give any login details to anyone! Staff of Al will not ask for login details!",
    
"[AutoMessage] Found an hacker or something breaking the rules /report or report it at forums!",
    
"[AutoMessage] Hackers/Cheaters will not get unbanned only with a special reason or proof!",
    
"[AutoMessage] If you guys need any help you can freely ask the admins also they will surely help you"
}; 



Re: getting 1 error - Deroxi - 02.06.2016

:/ Please edit the post and put it in Tags, PHP or HTML


Re: getting 1 error - hardiksingh5 - 02.06.2016

thanks guys for the help