Jump to content

Recommended Posts

Posted (edited)

    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
Posted

Daca ai un warning deobicei functioneaza, poate ma insel.

                                                                                                 

Posted

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. 

  • 2 weeks later...
Posted
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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.