Jump to content
  • 0

Problema System Login/register


Rafa

Question

Nick:Rafa

Problema: Pai am vrut sa fac dialog_style_password sa apara cu bilute si mi-au aparaut erori.

Erori / warnings[table]

:C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5338) : warning 217: loose indentation

C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5965) : error 029: invalid expression, assumed zero

C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5965) : warning 215: expression has no effect

C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5965) : warning 215: expression has no effect

C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5965) : warning 215: expression has no effect

C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5965) : warning 215: expression has no effect

C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5965) : error 001: expected token: ";", but found ")"

C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5965) : error 029: invalid expression, assumed zero

C:\Users\Home\Desktop\LcSNeT RPG\gamemodes\LcSNeT.pwn(5965) : fatal error 107: too many error messages on one line

[/td]

[/table]

Lini/script:5965/ Login/Register

Ai incercat sa rezolvi singur ?: Da

Va arat si scriptul sa vedeti:

[table]

public OnPlayerRequestClass(playerid, classid)

{

PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);

PlayerInfo[playerid][pModel] = Peds[classid][0];

if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)

{

if (gPlayerAccount[playerid] != 0)

{

new loginstring[MAX_STRING];

new loginname[164];

GetPlayerName(playerid,loginname,sizeof(loginname));

format(loginstring,sizeof(loginstring),"{FFFFFF}Bun venit, {FF0000}%s{FFFFFF}.\n{FFFFFF}Te rugam, introdu parola in casuta de mai jos pentru a te loga.\n\n\n{FFFFFF}Ultimul login: {FF0000}%s{FFFFFF}.",loginname,PlayerInfo[playerid][pUltLog]);

ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD," {FFFFFF}Logare",loginstring,"Intra","Iesi");

}

else

{

gPlayerAccount[playerid] = 0;

new regstring[MAX_STRING];

new regname[164];

GetPlayerName(playerid,regname,sizeof(regname));

format(regstring,sizeof(regstring),"{FFFFFF}Bun venit, {FF0000}%s{FFFFFF}.\n{FFFFFF}Acest nume nu este inregistrat in Baza de Date.\n{FFFFFF}Te rugam, introdu o parola in asuta de mai jos pentru a te inregistra:",regname);

ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD," {FFFFFF}Inregistrare",regstring,"Intra","Iesi");

}

PlayerInfo[playerid][pModel] = Peds[classid][0];

PlayerInfo[playerid][pChar] = Peds[classid][0];

SetPlayerTeamFromClass(playerid,classid);

}

SetPlayerTeamFromClass(playerid,classid);

SetupPlayerForClassSelection(playerid);

return 1;

}

[td]

[/table]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

salut poate vrei asa

public OnPlayerRequestClass(playerid, classid)

{

new string[182];

PlayerData[playerid][pModel] = Peds[classid][0];

if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)

{

if (gPlayerAccount[playerid] != 0)

{

new loginstring[182];

new loginname[182];

GetPlayerName(playerid,loginname,sizeof(loginname));

format(loginstring,sizeof(loginstring),"{a9c4e4}Bun venit inapoi pe BLoWn RPG \n{a9c4e4}Cont:{ee5555} %s \n{a9c4e4}Acest cont este inregistrat\nUltimul login: {ee5555}%s",loginname,PlayerData[playerid][pUltLog]);

ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"{00FE37}Login",loginstring,"Login","Exit");

}

else

{

gPlayerAccount[playerid] = 0;

new regstring[182];

new regname[182];

GetPlayerName(playerid,regname,sizeof(regname));

format(regstring,sizeof(regstring),"{D7F0F1}Bine ai venit,{06CCF9} %s{D7F0F1}\nAcest cont nu este inregistrat.\n ",regname);

ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"{00F6FE}Register",regstring,"Register","Exit");

}

PlayerData[playerid][pModel] = Peds[classid][0];

PlayerData[playerid][pChar] = Peds[classid][0];

SetPlayerTeamFromClass(playerid,classid);

SetPlayerWeather(playerid, 0);

}

    if (classid == 1)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 2)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 3)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 4)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 5)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 6)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 7)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 8)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 9)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 10)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 11)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 12)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 13)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 14)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 15)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else if (classid == 16)

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

else

{

format(string, sizeof(string), "");

GameTextForPlayer(playerid,string,3500,6);

}

SetPlayerTeamFromClass(playerid,classid);

SetupPlayerForClassSelection(playerid);

return 1;

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.