View Single Post
Old 14/07/2019, 05:58 PM   #1
Little Clucker
Join Date: Apr 2019
Posts: 15
Reputation: 0
Default Help with arrays/strings and comparing them.

Hello, for the last few days i was working on my gamemode, and i was new to MySql. Today, after 5 hours of doing this, my head doesn't work anymore and I just can't figure out, how can I compare the inputtext from dialog to a string I have saved in my database. I tried a few things, and it just doesnt work, any help is appreciated. here is the part of the script.
if(inputtext == pInfo[playerid][Name])
Basically, Name is a string, and inputtext is an array with symbols. How can i make it compare with each other, because now it just asks me to index inputtext. Thank you, any help is appreciated
MichaelScott is offline   Reply With Quote