06.07.2010, 07:50
I have this little code for my Roleplay Gamemode.
But it comes up with warnings saying:
Code:
I want it to store the Sex ID in the pSex.
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. |
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;