problem with ,,new''
#1

PHP код:
stock GivePlayerItem(playerid,legalitem,item,ammount,percent)
{
    new 
item random(ammount);
    switch (
random(percent))
    {
        case 
01:
        {
        
RLTnfo[playerid][legalitem] += item;
        
metal += item;
    new 
rep[128];
    
format (repsizeof(rep), "Found Metal %d",item);
    
SendClientMessage(playeridCOLOR_LIGHTBLUE"Scavenge Report:");
    
SendClientMessage(playeridCOLOR_LIGHTBLUErep);
        }
    }
    return 
0;

How can replace a
PHP код:
new item random (amount
; by Index Stock Index by itself 3 "item" to make the same function as the new item ...
Reply


Messages In This Thread
problem with ,,new'' - by rumen98 - 14.05.2014, 11:18
Re: problem with ,,new'' - by rumen98 - 14.05.2014, 11:23
Re: problem with ,,new'' - by rumen98 - 14.05.2014, 11:37
Re: problem with ,,new'' - by rumen98 - 14.05.2014, 11:39
Re: problem with ,,new'' - by rumen98 - 14.05.2014, 11:52
Re: problem with ,,new'' - by rumen98 - 14.05.2014, 12:08
Re: problem with ,,new'' - by Konstantinos - 14.05.2014, 12:15
Re: problem with ,,new'' - by rumen98 - 14.05.2014, 12:17
Re: problem with ,,new'' - by rumen98 - 14.05.2014, 12:26
Re: problem with ,,new'' - by DaniceMcHarley - 14.05.2014, 14:46

Forum Jump:


Users browsing this thread: 1 Guest(s)