SA-MP Forums Archive
Auto messages 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: Auto messages Error (/showthread.php?tid=651128)



Auto messages Error - Tihoy232 - 14.03.2018

[Line Automessages]

Код:
new AutoMessages[][] = {
{
    "{FFFFFF}(( {FF0000}Jakarta{E0FFFF}Gamers:Selamat Datang Patriot JakartaGamers Roleplay ))",
    "{FFFFFF}(( {FF0000}Jakarta{E0FFFF}Gamers:Laporkan pemain & Administrator/Helpers yang abuse ke forum server ))"
    "{FFFFFF}(( {FF0000}Jakarta{E0FFFF}Gamers:Jika melihat bug segera report keforum atau Admin yang sedang bertugas [ON-DUTY] ))"
};
[Line Error]
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(530 : error 001: expected token: "}", but found "-string-"
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\g


Re: Auto messages Error - Sew_Sumi - 14.03.2018

Missing the comma after

Код:
"{FFFFFF}(( {FF0000}Jakarta{E0FFFF}Gamers:Laporkan pemain & Administrator/Helpers yang abuse ke forum server ))"
And because you are missing one there, check the rest of it in the same manner.


Re: Auto messages Error - Tihoy232 - 14.03.2018

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Missing the comma after

Код:
"{FFFFFF}(( {FF0000}Jakarta{E0FFFF}Gamers:Laporkan pemain & Administrator/Helpers yang abuse ke forum server ))"
And because you are missing one there, check the rest of it in the same manner.
means to remove the commas?


Re: Auto messages Error - Tihoy232 - 14.03.2018

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Re: Auto messages Error - KaRToNiToS - 14.03.2018

Код:
new AutoMessages[][] =
{
    "{FFFFFF}(( {FF0000}Jakarta{E0FFFF}Gamers:Selamat Datang Patriot JakartaGamers Roleplay ))",
    "{FFFFFF}(( {FF0000}Jakarta{E0FFFF}Gamers:Laporkan pemain & Administrator/Helpers yang abuse ke forum server ))",
    "{FFFFFF}(( {FF0000}Jakarta{E0FFFF}Gamers:Jika melihat bug segera report keforum atau Admin yang sedang bertugas [ON-DUTY] ))"
};
You missed a comma in your second message,

You've also added an extra bracket at the top of your line which was unnecessary, Use my code I fixed it for you.