[Help] expression has no effect - Warning.
#1

I have this little code for my Roleplay Gamemode.
But it comes up with warnings saying:

Quote:

C:\Users\Mikkel\Desktop\SA-MP Server\gamemodes\TeRP.pwn(457) : warning 215: expression has no effect
C:\Users\Mikkel\Desktop\SA-MP Server\gamemodes\TeRP.pwn(462) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Code:
pawn Код:
if(dialogid == 2) //Sex Dialog Box
    {
        if(response)
        {
            if(listitem == 0)
            {
                pInfo[playerid][pSex] == 1; //Male - Line 457
                SetPlayerSkin(playerid, 299);
            }
            else if(listitem == 1)
            {
                pInfo[playerid][pSex] == 2; //Female - Line 462
                SetPlayerSkin(playerid, 298);
            }
        }
    }
    return 1;
I want it to store the Sex ID in the pSex.
Reply


Messages In This Thread
[Help] expression has no effect - Warning. - by Miikkel - 06.07.2010, 07:50
Re: [Help] expression has no effect - Warning. - by Matthias_ - 06.07.2010, 07:53
Re: [Help] expression has no effect - Warning. - by Miikkel - 06.07.2010, 07:57
Re: [Help] expression has no effect - Warning. - by Matthias_ - 06.07.2010, 07:58
Re: [Help] expression has no effect - Warning. - by nissan123 - 31.08.2010, 17:52
Re: [Help] expression has no effect - Warning. - by krystiang1 - 25.11.2011, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)