SA-MP Forums Archive
Error while compiling [REP+] - 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: Error while compiling [REP+] (/showthread.php?tid=613466)



Error while compiling [REP+] - Dejan12345 - 28.07.2016

Код:
public OnPlayerConnect(playerid)
{
if(!NameValidator(playerid))
{
      SendClientMessage(playerid, 0xFF0000FF,"Your name is non-roleplay name, "0xFF0000AA"You have been kicked!");
      SendClientMessage(playerid, 0xFF0000FF,"HINT: "0xFF0000AA"Your name must be in Firstname_Lastname format, (E.G: John_Hernandez)");
      Kick(playerid);
   return 1;
}
errors
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(182) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(182) : warning 215: expression has no effect
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(182) : error 001: expected token: ";", but found "-string-"
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(182) : warning 215: expression has no effect
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(182) : error 001: expected token: ";", but found ")"
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\gamemodes\BARP.pwn(182) : fatal error 107: too many error messages on one line
help


Re: Error while compiling [REP+] - ThePhenix - 28.07.2016

You need to use color embedding.
https://sampwiki.blast.hk/wiki/Color_Embedding


Re: Error while compiling [REP+] - Dejan12345 - 28.07.2016

fix it


Re: Error while compiling [REP+] - jlalt - 28.07.2016

here you go ;d
PHP код:
public OnPlayerConnect(playerid)
{
    if(!
NameValidator(playerid))
    {
        
SendClientMessage(playerid0xFF0000FF,"Your name is non-roleplay name, {FF0000}You have been kicked!");
          
SendClientMessage(playerid0xFF0000FF,"HINT: {FF0000}Your name must be in Firstname_Lastname format, (E.G: John_Hernandez)");
          
Kick(playerid);
    }
     return 
1;