SA-MP Forums Archive
if(inputtext == PlayerInfo[playerid][pPass]) - 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: if(inputtext == PlayerInfo[playerid][pPass]) (/showthread.php?tid=385428)



if(inputtext == PlayerInfo[playerid][pPass]) - PaulDinam - 15.10.2012

Doesnt works for me
if(inputtext == PlayerInfo[playerid][pPass])

gdm.pwn(390) : error 033: array must be indexed (variable "inputtext")


Re: if(inputtext == PlayerInfo[playerid][pPass]) - Roel - 15.10.2012

inputtext is a string to compare those two, use this:

pawn Код:
if(strcmp(PlayerInfo[playerid][pPass],inputtext , true ) == 0)



Re: if(inputtext == PlayerInfo[playerid][pPass]) - JhnzRep - 16.10.2012

Quote:
Originally Posted by PaulDinam
Посмотреть сообщение
Doesnt works for me
if(inputtext == PlayerInfo[playerid][pPass])

gdm.pwn(390) : error 033: array must be indexed (variable "inputtext")
If you are usng udb_hash then it should look like this.

PHP код:
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])