Scripting help??! - 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: Scripting help??! (
/showthread.php?tid=414042)
Scripting help??! -
Adrick - 07.02.2013
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.
Re: Scripting help??! -
Djole1337 - 07.02.2013
If you're trying to set that var to 1 that would be like
pawn Код:
PlayerInfo[playerid][pSex] = 1;
Re: Scripting help??! -
Adrick - 07.02.2013
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!