- 0
Problema System Login/register
-
Similar Content
-
- 4 replies
- 210 views
-
- 3 replies
- 242 views
-
- 1 reply
- 116 views
-
- 2 replies
- 354 views
-
- 11 replies
- 958 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Rafa
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 indentationC:\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