Jump to content
  • 0

Ce ar trebui sa mai fie si asta?


Question

Posted

Buna,am o mica problema cu un dialog:linkul imaginii este aici.Sa va descriu problema:Am creeat un dialog cu stilul DIALOG_STYLE_INPUT si imi arata un dialog cu stilul DIALOG_STYLE_MSGBOX!!!WTFF???!!!

Codul dialogului de register si la OnDialogResponse:

[pawn]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

if(dialogid == 0)

{

if(response)

{

new password = inputtext[128];

new string[128];

INI_Open(file);

INI_WriteString(file,"Parola",password);

new pName[MAX_PLAYER_NAME];

GetPlayerName(playerid,"pName",sizeof(pName));

INI_WriteString(file,"Nume",pName);

INI_WriteInt("Level",PInfo[playerid][level]);

INI_WriteInt("Cash",PInfo[playerid][cash]);

INI_WriteInt("Coins",PInfo[playerid][coins]);

INI_WriteInt("Score",PInfo[playerid][score]);

SendClientMessage(playerid,0x66FF00FF,"Te-ai inregistrat cu succes!!!");

format(string,128,"Te-ai inregistrat cu succes %s cu parola %s !!!",pName,password);

SendClientMessage(playerid,0x66FF00FF,string);

}

else

{

SendClientMessage(playerid,0xFF0000FF,"Nu te-ai inregistrat!Ai primit KICK!!!");

Kick(playerid);

}

}[/pawn]

V-as multumi mult daca m-ati putea ajuta!

4 answers to this question

Recommended Posts

Posted

Posibil ca nu ai inlocuit bine peste tot la casuta de register vezi la onplayerregister si onplayerconnect,onplayerlogin inlocuieste DIALOG_STYLE_MSGBOX cu DIALOG_STYLE_INPUT

Posted

Am uitat sa precizez ca nu am folosit CallBack-urile "OnPlayerRegister" si "OnPlayerLogin" in scriptul meu...am luat-o cu scriptul de la 0,nu am folosit decat tutoriale de aici si aici

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.