SA-MP Forums Archive
Using InputText Type of Dialogs - 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: Using InputText Type of Dialogs (/showthread.php?tid=300584)



Using InputText Type of Dialogs - Shockey HD - 01.12.2011

pawn Код:
case DIALOG_AGUN:
        {
            if ( !response ) return SendClientMessage(playerid,COLOR_RED,"Admin Weapon Selection Canceled");
            if( response )
            {

                new WeaponID = (inputtext);
                GivePlayerWeapon(playerid,WeaponID,999999);
                return 1;
            }
        }
    }
    return 1;
}
Receiving This Error:

pawn Код:
C:\Users\Chris\Desktop\Server\gamemodes\Gangwar.pwn(1764) : error 033: array must be indexed (variable "-unknown-")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: Using InputText Type of Dialogs - PrawkC - 01.12.2011

SHOCKEY BUDDY!

jk.. were not buddies, but just saw this thread despite the fact I havnt posted in ages to say ahhaha..

strval(inputext)