SA-MP Forums Archive
[HELP] Inputtext - 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: [HELP] Inputtext (/showthread.php?tid=555692)



[HELP] Inputtext - vinnythebest - 08.01.2015

Hello guys, i'm italian scripter, but i've problem with one script.
I've made a strongbox and i've problem with write a password of this strongbox, watch the script, is italian sorry.

Код:
if(!strcmp(inputtext, hInfo[InCasa[playerid]][Cassafortepass], false))
{
GivePlayerCash(playerid, hInfo[i][Cassaforte]);
hInfo[i][Cassaforte] = 0;
SendClientMessage(playerid, VERDE, "[Successo]: {FFFFFF}Complimenti, hai rubato i soldi in casa!");
controllocontenuto[playerid] = 0;
}
else
{
SendClientMessage(playerid, ROSSO, "[Cassaforte]: {FFFFFF}Non sei riuscito ad aprire la cassaforte");
}
All the time, i write good or wrong the message is:

Код:
SendClientMessage(playerid, ROSSO, "[Cassaforte]: {FFFFFF}Non sei riuscito ad aprire la cassaforte");
I've script only text and the script view a good password of hInfo[InCasa[playerid]][Cassafortepass] but with Inputtext don't work.

Thanks for all helpers


Re: [HELP] Inputtext - vinnythebest - 08.01.2015

Fixed with: if(strval(inputtext) == hInfo[InCasa[playerid]][Cassafortepass])