Saving inputtext into variable.
#1

Hey.
I've got a problem with saving the inputtext (from OnDialogResponse) into a variable.
This:

Код:
Password[playerid] = inputtext;
Gives me this:

Код:
C:\Users\Viktor\Desktop\SAdmin\filterscripts\SAdmin.pwn(315) : error 006: must be assigned to an array
and this

Код:
if(inputtext == Password[playerid])
gives this

Код:
C:\Users\Viktor\Desktop\SAdmin\filterscripts\SAdmin.pwn(327) : error 033: array must be indexed (variable "inputtext")
I know I have to turn the Password[MAX_PLAYERS] into a variable, but I need to be a variable assigned to current playerid, so I can have two people registering at once... can anybody help me? Thanks.
Reply


Messages In This Thread
Saving inputtext into variable. - by Homerman - 30.08.2011, 14:25
Re: Saving inputtext into variable. - by AndreT - 30.08.2011, 14:30
Re: Saving inputtext into variable. - by Homerman - 30.08.2011, 14:31
Re: Saving inputtext into variable. - by AndreT - 30.08.2011, 14:45
Re: Saving inputtext into variable. - by Homerman - 30.08.2011, 14:57

Forum Jump:


Users browsing this thread: 2 Guest(s)