- 0
Ce ar trebui sa mai fie si asta?
-
Similar Content
-
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
burnfire
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