Some help ?
#4

PHP код:
CMD:pay(playeridparams[])
{
    new 
idamountpName[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME], string[126];

    
GetPlayerName(playeridpNamesizeof(pName));
    
GetPlayerName(idpName2sizeof(pName2));
        
    if(
sscanf(params"ud"idamount))
    {
        if(
Player[playerid][Money] >= amount)
        {
            
Player[playerid][Money] -= amount;
            
Player[id][Money] += amount;
        
            
format(stringsizeof(string), "%s i-a dat lui %s $%d"pNamepName2amount);
            
ProxDetector(30playeridstringcolor_purplecolor_purplecolor_purplecolor_purplecolor_purple);
        }
    }
    return 
1;

Not sure if this is the problem but, Try it.
Reply


Messages In This Thread
Some help ? - by SpikeSpigel - 29.10.2015, 21:03
Re: Some help ? - by Private200 - 29.10.2015, 22:38
Re: Some help ? - by SpikeSpigel - 30.10.2015, 08:55
Re: Some help ? - by iKarim - 30.10.2015, 09:06
Re: Some help ? - by PrO.GameR - 30.10.2015, 09:22

Forum Jump:


Users browsing this thread: 2 Guest(s)