Dialog question
#1

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"
Reply
#2

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))
Reply
#3

23 errors, already tried that..
Reply
#4

And with
pawn Код:
else if(strcmp(inputtext,"Female", true) != 0 && strcmp(inputtext,"Male", true) != 0)
?
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)