SA-MP Forums Archive
-string- help - 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: -string- help (/showthread.php?tid=534591)



-string- help - YanLanger - 30.08.2014

Hi, i have auto msg system and when i added another msg it says found } but didn't found -string- or something anyways here is the code "{ff0000}Kate: {FFFFFF}No weapons? Just use /shop to buy them!"


Re: -string- help - SanAndreasMP - 30.08.2014

Can you show the full code?


Re: -string- help - YanLanger - 30.08.2014

Код:
new Message[][] =
{
        "{ff0000}Kate: {FFFFFF}Saw a Hacker/RuleBreaker? use /report [id] [reason].",
        "{ff0000}Kate: {FFFFFF}Injured? Type /hp to refill ur health",
        "{ff0000}Kate: {FFFFFF}Regiser at our forum: http://lsgw.url.ph/",
        "{ff0000}Kate: {FFFFFF}New updates every week"
        "{ff0000}Kate: {FFFFFF}No weapons? Just use /shop to buy them!"
}



Re: -string- help - YanLanger - 30.08.2014

Anyone?


Re: -string- help - SickAttack - 30.08.2014

You must add a comma at the end of each string, except the last one.


Re: -string- help - YanLanger - 30.08.2014

ty xdd


Re: -string- help - SanAndreasMP - 30.08.2014

Here's the proper code.

pawn Код:
new Message[][] =
{
        "{ff0000}Kate: {FFFFFF}Saw a Hacker/RuleBreaker? use /report [id] [reason].",
        "{ff0000}Kate: {FFFFFF}Injured? Type /hp to refill ur health",
        "{ff0000}Kate: {FFFFFF}Regiser at our forum: http://lsgw.url.ph/",
        "{ff0000}Kate: {FFFFFF}New updates every week",
        "{ff0000}Kate: {FFFFFF}No weapons? Just use /shop to buy them!"
}