Dialog question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog question (
/showthread.php?tid=202027)
Dialog question -
admantis - 23.12.2010
How i can know if the inputtext aint the thing i want.... Like this(Script im trying):
pawn Код:
else if(!strcmp(!inputtext,"Female", true) || (!strcmp(!inputtext,"Male", true))
{
ShowPlayerDialog(playerid, 86, DIALOG_STYLE_INPUT, "Tutorial","Are you Female or Male?", "Accept", "Leave");
}
And it gives me this error:
pawn Код:
C:\Archivos de programa\Rockstar Games\GTA San Andreas\SA-MP 0.3b\Server 0.3b\gamemodes\Taurus.pwn(243) : error 028: invalid subscript (not an array or too many subscripts): "strcmp"
Re: Dialog question - Larsey123IsMe - 23.12.2010
Try this
pawn Код:
else if(!strcmp(!inputtext,"Female", true) || (!strcmp(!inputtext,"Male", true))
to
pawn Код:
else if(!strcmp(!inputtext,"Female", true) || !strcmp(!inputtext,"Male", true))
Respuesta: Dialog question -
admantis - 23.12.2010
23 errors, already tried that..
Re: Dialog question -
Alice[WS] - 23.12.2010
And with
pawn Код:
else if(strcmp(inputtext,"Female", true) != 0 && strcmp(inputtext,"Male", true) != 0)
?
Respuesta: Dialog question -
admantis - 23.12.2010
It gave me 23 errors again.. I fixed them and i got 1 error
C:\Archivos de programa\Rockstar Games\GTA San Andreas\SA-MP 0.3b\Server 0.3b\gamemodes\Taurus.pwn(24
: fatal error 103: insufficient memory