SA-MP Forums Archive
[HELP]warning 215: expression has no effect - 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: [HELP]warning 215: expression has no effect (/showthread.php?tid=351748)



[HELP]warning 215: expression has no effect - Orhun_Kaya - 17.06.2012

pawn Код:
CMD:meslek(playerid, params[])
{
    if(isnull(params))
    {
        SendClientMessage(playerid, COLOR_WHITE, "[KULLANIM]: /meslek [isim]");
        SendClientMessage(playerid, COLOR_WHITE, "Gecerli Isimler: yardim, gir, cik");
        return 1;
    }
    if(strcmp(params, "yardim", true) == 0)
    {
    //
    }
    else if(strcmp(params, "gir", true) == 0)
    {
    SendClientMessage(playerid, COLOR_WHITE, "Meslek bolgesinde degilsin");
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1490.3337,1305.8390,1093.2964)){
    PlayerInfo[playerid][pJob] == 3;//warning 215: expression has no effect
    }
    else if(strcmp(params, "cik", true) == 0)
    {
    //
    }
    return 1;
}



Re: [HELP]warning 215: expression has no effect - JaKe Elite - 17.06.2012

pawn Код:
PlayerInfo[playerid][pJob] == 3;
to

pawn Код:
PlayerInfo[playerid][pJob] = 3;
Don't rep me because you can't,
i hate spammers repping me even they can't rep