[Ajuda] Oque tem de errado - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Oque tem de errado (
/showthread.php?tid=411507)
Oque tem de errado -
Humildade - 29.01.2013
PHP Code:
if(!DOF2_FileExists(ReturnFileUser(playerid)))
return
format(StrRegistroLogin, sizeof(StrRegistroLogin), "{CAE1FF}Nick: {AB82FF}%s\n\n{CAE1FF}Status: {00FF00}Registrada", plname);
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Logar", StrLogin, "Logar", "Esperar");
else if(DOF2_FileExists(ReturnFileUser(playerid)))
return
format(StrRegistroLogin, sizeof(StrRegistroLogin), "{CAE1FF}Nick: {AB82FF}%s\n\n{CAE1FF}Status: {00FF00}Registrada", plname);
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Logar", StrLogin, "Logar", "Esperar");(playerid);
deu isso
PHP Code:
error 001: expected token: ";", but found "if"
Re: Oque tem de errado -
mau.tito - 29.01.2013
Numca usa return com duas linhas seguidas !
pawn Code:
if(!DOF2_FileExists(ReturnFileUser(playerid)))
{
format(StrRegistroLogin, sizeof(StrRegistroLogin), "{CAE1FF}Nick: {AB82FF}%s\n\n{CAE1FF}Status: {00FF00}Registrada", plname);
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Logar", StrLogin, "Logar", "Esperar");
{
else
{
format(StrRegistroLogin, sizeof(StrRegistroLogin), "{CAE1FF}Nick: {AB82FF}%s\n\n{CAE1FF}Status: {00FF00}Registrada", plname);
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Logar", StrLogin, "Logar", "Esperar");(playerid);
}
Re: Oque tem de errado -
RedZ - 29.01.2013
Quote:
Originally Posted by Humildade
PHP Code:
if(!DOF2_FileExists(ReturnFileUser(playerid)))
return
format(StrRegistroLogin, sizeof(StrRegistroLogin), "{CAE1FF}Nick: {AB82FF}%s\n\n{CAE1FF}Status: {00FF00}Registrada", plname);
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Logar", StrLogin, "Logar", "Esperar");
else if(DOF2_FileExists(ReturnFileUser(playerid)))
return
format(StrRegistroLogin, sizeof(StrRegistroLogin), "{CAE1FF}Nick: {AB82FF}%s\n\n{CAE1FF}Status: {00FF00}Registrada", plname);
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Logar", StrLogin, "Logar", "Esperar");(playerid);
deu isso
PHP Code:
error 001: expected token: ";", but found "if"
|
Dorgas mano... Que script й esse? o.o