public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registering...","{FFFFFF}Type your password below to register a new account.","Register","Quit"); //line 518
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering...",""COLOR_WHITE"Type your password below to register a new account.","Register","Quit"); //Line 522
}
return 1;
}
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : warning 215: expression has no effect C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(522) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(522) : warning 215: expression has no effect C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(522) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(522) : warning 215: expression has no effect C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(522) : error 001: expected token: ";", but found "-string-" C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(522) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registering...","{FFFFFF}Type your password below to register a new account.","Register","Quit"); //line 518
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registering...","{FFFFFF}Type your password below to register a new account.","Register","Quit"); //Line 522
}
return 1;
}
#define COL_WHITE "{FFFFFF}"
""COL_WHITE"Some Text"
|
try this code:
Код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registering...","{FFFFFF}Type your password below to register a new account.","Register","Quit"); //line 518
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registering...","{FFFFFF}Type your password below to register a new account.","Register","Quit"); //Line 522
}
return 1;
}
|
C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(518) : warning 215: expression has no effect C:\Users\Mohamed\Desktop\samp servering\gamemodes\grandlarc.pwn(522) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
|
You used "COLOR_WHITE" which is defined an an integer. Color embedding is meant to be strings like:
pawn Код:
pawn Код:
|