[HELP] Login system errors
#1

PHP код:
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : error 001expected token"-string end-"but found "-identifier-"
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : warning 215expression has no effect
C
:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : error 001expected token";"but found "-string-"
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : warning 215expression has no effect
C
:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : error 001expected token";"but found ")"
C:\Program Files (x86)\Rockstar Games\GTA SA Server\gamemodes\test3.pwn(112) : fatal error 107too many error messages on one line 
String 112:
PHP код:
format(naslov2sizeof(naslov2), ""COL_BLUE"     Benvenuto"COL_WHITE" %s!"GetName(playerid)); 
All code of string 112:
PHP код:
public OnPlayerConnect(playerid)
{
    new 
naslov2[128], text[128], strText[104];
    
format(strText35USER_FILEGetName(playerid));
    if(!
INI_Exists(strText))
    {
        
format(naslov2sizeof(naslov2), ""COL_BLUE"     Benvenuto"COL_WHITE" %s!"GetName(playerid));
        
format(textsizeof(text), ""COL_WHITE"______________________________\n\n"COL_BLUE"L'Username"COL_WHITE" %s"COL_BLUE" non ГЁ registrato!\n\nRegistrati!"GetName(playerid));
        
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUTnaslov2text"Registra""Esci");
    }
    else
    {
        
format(naslov2sizeof(naslov2), ""COL_GREEN"     Benvenuto"COL_WHITE" %s!"GetName(playerid));
        
format(textsizeof(text),""COL_WHITE"______________________________\n\n"COL_GREEN"L'Username"COL_WHITE" %s"COL_GREEN" ГЁ registrato!\n\nLoggati!"GetName(playerid));
        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUTnaslov2text"Login""Esci");
    }
    
SetPVarInt(playerid"Joinato"1);
    return 
1;

Please help me i'm learning.
Reply
#2

In order to use colour embedding is strings, it needs to be: "{RRGGBB}" instead of: 0xRRGGBBAA

So for example:
pawn Код:
#define COL_BLUE "{0000FF}"
#define COL_WHITE "{FFFFFF}"
#define COL_GREEN "{00FF00}"
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
In order to use colour embedding is strings, it needs to be: "{RRGGBB}" instead of: 0xRRGGBBAA

So for example:
pawn Код:
#define COL_BLUE "{0000FF}"
#define COL_WHITE "{FFFFFF}"
#define COL_GREEN "{00FF00}"
i think there is problem with the
pawn Код:
GetPlayerName(playerid));
actually
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)