[ help ] dialog ( how to? )
#1

Guys how to do this
Player can only enter number not letters
when they type a Letter it will say

[ Error ]: Please use a numeric not letter

bdw sorry for my english
here is my code

pawn Код:
case D_SKINSHOP:
        {
            if (!response) return SendClientMessage(playerid,C_ERROR,"[ Error ]:"CWHITE" You have cancelled it ");
            if(response)
            {
                new Skinid;
                Skinid = strlen(inputtext);
                if(pData[playerid][pCash] < 5000) return SendClientMessage(playerid,C_ERROR,"[ Error ]:"CWHITE" You dont have enough money to buy this skin");
                if(Skinid < 0 || Skinid > 299) return SendClientMessage(playerid,C_BOT,"Enricka:"CWHITE" Sorry That skin id is not available");
                GetMoney(playerid,5000);
                SetPlayerSkin(playerid,Skinid);
            }
        }
Reply


Messages In This Thread
[ help ] dialog ( how to? ) - by RicaNiel - 18.03.2012, 08:47
Re: [ help ] dialog ( how to? ) - by Reklez - 18.03.2012, 08:51

Forum Jump:


Users browsing this thread: 4 Guest(s)