Problem 1 line !
#1

Sorry for my english.

I got an error at this line.

pawn Код:
public SendMSG()
{
    SendClientMessageToAll(COLOR_YELLOW, RandomMSG[random(sizeof(RandomMSG))]);
    return 1;
}

This is the error:

Код:
C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(173) : error 029: invalid expression, assumed zero
C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(173) : error 020: invalid symbol name ""
C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(173) : error 029: invalid expression, assumed zero
C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(173) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Please, I need to solve this problem before 21:00 PM.




Edit: I need for this.

pawn Код:
forward SendMSG();
pawn Код:
new RandomMSG[][] =
{
    "System : {FFFFFF} Daca doresti sa iti cumperi arme, tasteaza comanda {FF0000}/arme{FFFFFF} ! ",
    "System : {FFFFFF} {FFFFFF} Daca doresti sa vezi toate comenzile serverului, tasteaza comanda {FF0000}/cmds{FFFFFF} !",
    "System : {FFFFFF} Daca doresti sa mergi in locuri diferite si sa te distrezi, tasteaza {FF0000}/teles{FFFFFF} !"},
    //"System : {FF99CC} /credits To See Credits",
    "System : {FFFFFF} Daca doresti sa te distrezi cu prietenii tai, tasteaza {FF0000}/dm[1-4] {FFFFFF}!"},
    "System : {FFFFFF} Daca doresti sa le arati tuturor ca esti mai bun ca ei, tasteaza {FF0000}/minigames {FFFFFF}!"},
    "System : {FFFFFF} Daca doresti sa vezi actualizarile facute pe server, tasteaza {FF0000}/update{FFFFFF} !"},
    "System : {FFFFFF} Daca doresti sa fi la curent cu tot ce se intampla pe server, tasteaza {FF0000}/forum{FFFFFF} !"},
    "System : {FFFFFF} Vrei sa ai admin , vip sau o masina personala? Tasteaza /preturi !"},
    "System : {FFFFFF} S-au deschis pe {0b7a9a}/forum{FFFFFF}, la sectiunea serverului, {FF0000}aplicatiile pentru admin{FFFFFF} ! Te crezi in stare? Posteaza acum."},
    "System : {FFFFFF} Vrei sa spawnezi un vehicul? Tasteaza {FF00000}/car [nume masina] [color1] [color2-optional]{FFFFFF} !"},
    "System : {FFFFFF} Vrei un NRG-500? Tasteaza {FF0000}/nrg {FFFFFF}!"},
    "System : {FFFFFF} Asteptam sugestiile voastre pe forumul nostru la sectiunea serverului. ( /forum )",
    //"System : {FFFFFF} Enjoy Skydiving in Only 1000$$ use /skydive ",
    "System : {FFFFFF} Daca ai o {0b7a9a}sugestie{FFFFFF} pentru server, fa-o pe {FF0000}/forum{FFFFFF} , la sectiunea serverului nostru !"}
};
Reply
#2

pawn Код:
new ChosenMessage = random( sizeof( RandomMSG ) );
SendClientMessageToAll( COLOR_YELLOW, RandomMSG[ ChosenMessage ] );
Reply
#3

Not working.
Reply
#4

Putting the codes on the GameModeInit may make it work!
Reply
#5

Why did you use "}" at the end, lol
Replace with
pawn Код:
new RandomMSG[][] =
{
    "System : {FFFFFF} Daca doresti sa iti cumperi arme, tasteaza comanda {FF0000}/arme{FFFFFF} ! ",
    "System : {FFFFFF} {FFFFFF} Daca doresti sa vezi toate comenzile serverului, tasteaza comanda {FF0000}/cmds{FFFFFF} !",
    "System : {FFFFFF} Daca doresti sa mergi in locuri diferite si sa te distrezi, tasteaza {FF0000}/teles{FFFFFF} !",
    //"System : {FF99CC} /credits To See Credits",
    "System : {FFFFFF} Daca doresti sa te distrezi cu prietenii tai, tasteaza {FF0000}/dm[1-4] {FFFFFF}!",
    "System : {FFFFFF} Daca doresti sa le arati tuturor ca esti mai bun ca ei, tasteaza {FF0000}/minigames {FFFFFF}!",
    "System : {FFFFFF} Daca doresti sa vezi actualizarile facute pe server, tasteaza {FF0000}/update{FFFFFF} !",
    "System : {FFFFFF} Daca doresti sa fi la curent cu tot ce se intampla pe server, tasteaza {FF0000}/forum{FFFFFF} !",
    "System : {FFFFFF} Vrei sa ai admin , vip sau o masina personala? Tasteaza /preturi !",
    "System : {FFFFFF} S-au deschis pe {0b7a9a}/forum{FFFFFF}, la sectiunea serverului, {FF0000}aplicatiile pentru admin{FFFFFF} ! Te crezi in stare? Posteaza acum.",
    "System : {FFFFFF} Vrei sa spawnezi un vehicul? Tasteaza {FF00000}/car [nume masina] [color1] [color2-optional]{FFFFFF} !",
    "System : {FFFFFF} Vrei un NRG-500? Tasteaza {FF0000}/nrg {FFFFFF}!",
    "System : {FFFFFF} Asteptam sugestiile voastre pe forumul nostru la sectiunea serverului. ( /forum )",
    //"System : {FFFFFF} Enjoy Skydiving in Only 1000$$ use /skydive ",
    "System : {FFFFFF} Daca ai o {0b7a9a}sugestie{FFFFFF} pentru server, fa-o pe {FF0000}/forum{FFFFFF} , la sectiunea serverului nostru !"
};
and
pawn Код:
forward SendMSG();
public SendMSG()
{
    new ChosenMessage = random( sizeof( RandomMSG ) );
    SendClientMessageToAll( COLOR_YELLOW, RandomMSG[ ChosenMessage ] );
    return 1;
}
Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
Replace yours with this.

pawn Код:
new RandomMSG[][] =
{
    "System : {FFFFFF} Daca doresti sa iti cumperi arme, tasteaza comanda {FF0000}/arme{FFFFFF} ! ",
    "System : {FFFFFF} {FFFFFF} Daca doresti sa vezi toate comenzile serverului, tasteaza comanda {FF0000}/cmds{FFFFFF} !",
    "System : {FFFFFF} Daca doresti sa mergi in locuri diferite si sa te distrezi, tasteaza {FF0000}/teles{FFFFFF} !"},
    //"System : {FF99CC} /credits To See Credits",
    "System : {FFFFFF} Daca doresti sa te distrezi cu prietenii tai, tasteaza {FF0000}/dm[1-4] {FFFFFF}!"},
    "System : {FFFFFF} Daca doresti sa le arati tuturor ca esti mai bun ca ei, tasteaza {FF0000}/minigames {FFFFFF}!"},
    "System : {FFFFFF} Daca doresti sa vezi actualizarile facute pe server, tasteaza {FF0000}/update{FFFFFF} !"},
    "System : {FFFFFF} Daca doresti sa fi la curent cu tot ce se intampla pe server, tasteaza {FF0000}/forum{FFFFFF} !"},
    "System : {FFFFFF} Vrei sa ai admin , vip sau o masina personala? Tasteaza /preturi !"},
    "System : {FFFFFF} S-au deschis pe {0b7a9a}/forum{FFFFFF}, la sectiunea serverului, {FF0000}aplicatiile pentru admin{FFFFFF} ! Te crezi in stare? Posteaza acum."},
    "System : {FFFFFF} Vrei sa spawnezi un vehicul? Tasteaza {FF00000}/car [nume masina] [color1] [color2-optional]{FFFFFF} !"},
    "System : {FFFFFF} Vrei un NRG-500? Tasteaza {FF0000}/nrg {FFFFFF}!"},
    "System : {FFFFFF} Asteptam sugestiile voastre pe forumul nostru la sectiunea serverului. ( /forum )",
    //"System : {FFFFFF} Enjoy Skydiving in Only 1000$$ use /skydive ",
    "System : {FFFFFF} Daca ai o {0b7a9a}sugestie{FFFFFF} pentru server, fa-o pe {FF0000}/forum{FFFFFF} , la sectiunea serverului nostru !"
You still have bracket at the end which will give errors.
Reply
#6

Replace yours with this.

pawn Код:
new RandomMSG[][] =
{
    "System : {FFFFFF} Daca doresti sa iti cumperi arme, tasteaza comanda {FF0000}/arme{FFFFFF} ! ",
    "System : {FFFFFF} {FFFFFF} Daca doresti sa vezi toate comenzile serverului, tasteaza comanda {FF0000}/cmds{FFFFFF} !",
    "System : {FFFFFF} Daca doresti sa mergi in locuri diferite si sa te distrezi, tasteaza {FF0000}/teles{FFFFFF} !"},
    //"System : {FF99CC} /credits To See Credits",
    "System : {FFFFFF} Daca doresti sa te distrezi cu prietenii tai, tasteaza {FF0000}/dm[1-4] {FFFFFF}!"},
    "System : {FFFFFF} Daca doresti sa le arati tuturor ca esti mai bun ca ei, tasteaza {FF0000}/minigames {FFFFFF}!"},
    "System : {FFFFFF} Daca doresti sa vezi actualizarile facute pe server, tasteaza {FF0000}/update{FFFFFF} !"},
    "System : {FFFFFF} Daca doresti sa fi la curent cu tot ce se intampla pe server, tasteaza {FF0000}/forum{FFFFFF} !"},
    "System : {FFFFFF} Vrei sa ai admin , vip sau o masina personala? Tasteaza /preturi !"},
    "System : {FFFFFF} S-au deschis pe {0b7a9a}/forum{FFFFFF}, la sectiunea serverului, {FF0000}aplicatiile pentru admin{FFFFFF} ! Te crezi in stare? Posteaza acum."},
    "System : {FFFFFF} Vrei sa spawnezi un vehicul? Tasteaza {FF00000}/car [nume masina] [color1] [color2-optional]{FFFFFF} !"},
    "System : {FFFFFF} Vrei un NRG-500? Tasteaza {FF0000}/nrg {FFFFFF}!"},
    "System : {FFFFFF} Asteptam sugestiile voastre pe forumul nostru la sectiunea serverului. ( /forum )",
    //"System : {FFFFFF} Enjoy Skydiving in Only 1000$$ use /skydive ",
    "System : {FFFFFF} Daca ai o {0b7a9a}sugestie{FFFFFF} pentru server, fa-o pe {FF0000}/forum{FFFFFF} , la sectiunea serverului nostru !"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)