Jump to content

Cum o pot face sa aibe o logica pentru a functiona?


EnAcHe

Recommended Posts

    warning 211: possibly unintended assignment      la    if(PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string))

     new string[256];
    if(PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string))
    format(PlayerInfo[playerid][pPin], 5, string);
    {
        if(strlen(PlayerInfo[playerid][pPin]) == 1)
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contul tau nu are un PIN setat. Pentru a imbunatati securitatea contului tau foloseste /pininfo si seteaza-ti un PIN.");
        }
            else if(strlen(PlayerInfo[playerid][pPin]) != 0) {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pentru a folosi comenzile de transfer al banilor trebuie sa iti deblochezi contul. Foloseste comanda /pin pentru a il debloca.");
        }

Edited by EnAcHe
Link to comment
Share on other sites

Daca ai un warning deobicei functioneaza, poate ma insel.

                                                                                                 

Link to comment
Share on other sites

cache_get_field_content(0, "Pin", string))   - aici e greseala foloseste: cache_get_field_content_int. cauta pe samp wiki sa vezi cum se foloseste.

Cea mai sigura sursa de facut bani de buzunar in mediul virtual. Inregistreaza-te si pune-te pe treaba !!!

http://www.viespar.ro/?reff=ab8e9d8086304d6136eac03c710238d7

Link to comment
Share on other sites

  • 2 weeks later...
On ‎5‎/‎13‎/‎2016 at 23:54, Alberto. said:

if(PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string))

verificarea egalitatii se face cu semnul '=='

semnul '=' inseamna ca acea variabila ia valoarea, de aceea nu are nici un sens. 

 

On ‎5‎/‎13‎/‎2016 at 03:26, EnAcHe said:

    warning 211: possibly unintended assignment      la    if(PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string))

     new string[256];
    if(PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string))
    format(PlayerInfo[playerid][pPin], 5, string);
    {
        if(strlen(PlayerInfo[playerid][pPin]) == 1)
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Contul tau nu are un PIN setat. Pentru a imbunatati securitatea contului tau foloseste /pininfo si seteaza-ti un PIN.");
        }
            else if(strlen(PlayerInfo[playerid][pPin]) != 0) {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pentru a folosi comenzile de transfer al banilor trebuie sa iti deblochezi contul. Foloseste comanda /pin pentru a il debloca.");
        }

if(PlayerInfo[playerid][pPin] = cache_get_field_content(0, "Pin", string))

nu are ce cauta acolo asa ceva

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

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.

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