SA-MP Forums Archive
Need help fast. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help fast. (/showthread.php?tid=471828)



Archive please - Alex_T - 25.10.2013

Archive Please


Re: Need help fast. - Alex_T - 25.10.2013

Please. Need help fast. Will rep who ever helps me first


Re: Need help fast. - Konstantinos - 25.10.2013

No, there is not. You just re-show the dialog if the response is positive (they pressed the first button).

pawn Код:
else if (dialogid == 3)//Sex
{
    if(!response) return ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Rigester", "Male \nFemale", "Ok", "Leave");
   
    new name[MAX_PLAYER_NAME], file[50];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
   
    if (listitem == 0) dini_IntSet(file, "Gender",PlayerInfo[playerid][pGender] = 1);
    else dini_IntSet(file, "Gender",PlayerInfo[playerid][pGender] = 0);
   
    SendClientMessage(playerid,COLOR_YELLOW, "[SYSTEM]: Successfully logged in!");
    SendClientMessage(playerid,COLOR_YELLOW, "Welcome to OG-RP. This is a heavy RP script.");
    gPlayerLogged[playerid] = 1;
}
EDIT: I wouldn't post if I refreshed the page and saw that double post. FOLLOW the Forum Rules if you want to get help the next time..


Re: Need help fast. - Alex_T - 25.10.2013

Great help. Repped