[HELP] Inputtext
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)