Jump to content

problema pin

Recommended Posts

Salut, am facut un cod de pin, si am pus la onplayerspawn

if(PlayerInfo[playerid][SetPin] == 1 && PlayerInfo[playerid][PINSecurity] == 1)
        strcat(eString, "{FF0000}Contul tau este securizat cu un PIN.\n\
                         {FFFF00}Te rugam sa iti scrii Pin-ul mai jos, daca nu il mai stii poti face o cerere pe forum-ul server-ului.");
        ShowPlayerDialog(playerid, DIALOG_SPAWNPIN, DIALOG_STYLE_INPUT, "{FF0000}Account security #PIN", eString, "Ok", "Close");

chestia e ca, chiar daca am un pin si in baza de date apare ca am un pin, cand intru pe server nu imi arata sa pun pin-ul cont-ului.

Si daca am deja un pin setat, mai merge sa dau iar /setpin chiar daca eu am pus sa nu mearga.

// CMD: SETPIN // if(PlayerInfo[playerid][SetPin] == 1) return SendError(playerid, "Ai deja un Pin setat pe cont. Daca l-ai uitat poti face o cerere de deblocare pe '/forum'."); 

ma ajuta cineva?

Link to comment
Share on other sites

Ce descrii imi sugereaza faptul ca SetPin nu primeste valoarea 1 dupa ce playerul este logat si datele lui sunt incarcate din baza de date. Iti recomand sa revizuiesti codul unde incarci datele playerului si sa te asiguri ca incarci sau modifici si SetPin conform datelor salvate.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.