PHP код:
if (gPlayerAccount[playerid] != 0)
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
TextDrawShowForPlayer(playerid, TextdrawConnect2);
TextDrawShowForPlayer(playerid, TextdrawConnect3);
format(loginstring,sizeof(loginstring),"{FFFFFF}Salut, {2F991A}%s {FFFFFF}Ai deja un cont pe Comunitatea Union-Zone!",loginname);
SendClientMessage(playerid, COLOR_WHITE, loginstring);
format(loginstring,sizeof(loginstring),"Acest cont este inregistrat.Te poti loga!",loginname);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit");
}
else
{
gPlayerAccount[playerid] = 0;
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
TextDrawShowForPlayer(playerid, TextdrawConnect2);
TextDrawShowForPlayer(playerid, TextdrawConnect3);
format(regstring,sizeof(regstring),"{FFFFFF}Salut, {FF0000}%s {FFFFFF}Tu nu ai un cont pe Comunitatea Union-Zone!",regname);
SendClientMessage(playerid, COLOR_WHITE, regstring);
format(regstring,sizeof(regstring),"Tu nu ai cont.Inregistreazate!",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit");
}
PROBLEM is this.but i dont know what.
PHP код:
else
{
gPlayerAccount[playerid] = 0;
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
TextDrawShowForPlayer(playerid, TextdrawConnect2);
TextDrawShowForPlayer(playerid, TextdrawConnect3);
format(regstring,sizeof(regstring),"{FFFFFF}Salut, {FF0000}%s {FFFFFF}Tu nu ai un cont pe Comunitatea Union-Zone!",regname);
SendClientMessage(playerid, COLOR_WHITE, regstring);
format(regstring,sizeof(regstring),"Tu nu ai cont.Inregistreazate!",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit");
}