#1

Hi Guys
i have small problems my Code no effect in my Server
PHP код:
public OnPlayerText(playeridtext[])
{
    if(
text[0] == '1')
    {
        if(
FirstWeaponText[playerid] == 1)
        {
           new 
Amount;
           if( 
sscanf text[1], "i",Amount))  return SendClientMessage(playerid,-1"[amount]");// amount he wants.
           
if(Amount || Amount 10000) return SendClientMessage(playerid,-1,"You can only buy from 1 - 10000 bullets");// check if player has writen more than required
           
{
               
GivePlayerMoney(playerid,-Amount*100); // this makes 1 bullet for 100$
               
GivePlayerWeapon(playeridWEAPON_M4Amount);
           }
        }
    } 
i tired to Type 1 in chat after that's i Type Amount Ammo i needed not working why ?
Reply


Messages In This Thread
Help - by astanalol - 06.04.2017, 20:20
Re: Help - by khRamin78 - 06.04.2017, 20:29
Re: Help - by astanalol - 06.04.2017, 20:53
Re: Help - by astanalol - 07.04.2017, 19:38
Re: Help - by XpDeviL - 07.04.2017, 21:01
Re: Help - by astanalol - 07.04.2017, 21:12
Re: Help - by XpDeviL - 07.04.2017, 21:16
Re: Help - by astanalol - 07.04.2017, 21:28

Forum Jump:


Users browsing this thread: 3 Guest(s)