Scripting help??!
#1

Hey guys I need help with this dialog response.

Код:
        
        case DIALOG_SEX:
        {
            if ( response )
            {
                PlayerInfo[playerid][pSex] == 1;
	}
	else
	{
                PlayerInfo[playerid][pSex] == 2;
	}
	return 1;
        }
    }
    return 0;
}
}
I get these 2 warnings.

Код:
C:\Users\Dantavious\Desktop\Scripting\Roleplay\Custom_script\gamemodes\A-RP.pwn(338) : warning 215: expression has no effect
C:\Users\Dantavious\Desktop\Scripting\Roleplay\Custom_script\gamemodes\A-RP.pwn(342) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#2

If you're trying to set that var to 1 that would be like
pawn Код:
PlayerInfo[playerid][pSex] = 1;
Reply
#3

Quote:
Originally Posted by Mr_DjolE
Посмотреть сообщение
If you're trying to set that var to 1 that would be like
pawn Код:
PlayerInfo[playerid][pSex] = 1;
Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)