weird errors - 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: weird errors (
/showthread.php?tid=609189)
weird errors -
Eymeric69 - 09.06.2016
hi guys i have a script with YSI but it's not working can you help me ?
PHP код:
public OnPlayerConnect(playerid)
{
// connexion message
new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has joined The Aviation Life.", name);
SendClientMessageToAll(COULEUR_BLEUCLAIR, string);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COULEUR_BLANC"Login",""COULEUR_BLANC"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COULEUR_BLANC"Registering...",""COULEUR_BLANC"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
PHP код:
C:\Users\Dell pc\Desktop\Life of Flying 0.3x\gamemodes\Main.pwn(108) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Dell pc\Desktop\Life of Flying 0.3x\gamemodes\Main.pwn(108) : warning 215: expression has no effect
C:\Users\Dell pc\Desktop\Life of Flying 0.3x\gamemodes\Main.pwn(108) : error 001: expected token: ";", but found "-string-"
C:\Users\Dell pc\Desktop\Life of Flying 0.3x\gamemodes\Main.pwn(108) : warning 215: expression has no effect
C:\Users\Dell pc\Desktop\Life of Flying 0.3x\gamemodes\Main.pwn(108) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Dell pc\Desktop\Life of Flying 0.3x\gamemodes\Main.pwn(108) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
thank for the help
Re: weird errors -
Chilli9434 - 09.06.2016
""COULEUR_BLANC"Registering...",""COULEUR_BLANC"Ty pe your password below to register a new account.","Register","Quit");
"COULEUR_BLANC" is your problem I think, you need to do "{coloridHere} string continue" to change colour
Re: weird errors -
Eymeric69 - 09.06.2016
thank you i have deleted all "COULEUR_BLANC".
Re: weird errors -
Stinged - 09.06.2016
Chili9434 is correct. You should use {hex} for embedded colours.
You could also define them as this:
Код:
#define BLANC "{FFFFFF}"