SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing two strings addys1 Scripting Help 2 20/05/2017 12:48 AM
Comparing two strings. nerovani Scripting Help 6 24/03/2016 11:05 AM
Comparing 2 strings Aa12 Scripting Help 8 08/01/2016 05:20 PM
comparing strings HondaCBR Scripting Help 2 02/01/2012 02:15 PM
Help with comparing two strings OUL Scripting Help 2 02/11/2011 05:11 PM

All times are GMT. The time now is 03:16 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.