#3

Use sscanf 2.

PHP код:
CMD:datm(playeridparams[])
{
    if (!
IsPlayerAdmin(playerid)) 
        return 
SendClientMessage(playerid, -1"");
    new 
id;
    if(
sscanf(params"i"id))
            return 
SendClientMessage(playeridred"USAGE: /datm [ATM ID]");
    new 
atm_str[21];
    
format(atm_strsizeof(atm_str), "ATMs/atmid%d"id);
    if (!
dini_Exists(atm_str))
        return 
SendClientMessage(playeridred"ERROR: There's no ATM Pranch Exists on our Database with this ID");
    
dini_Remove(atm_str);
    
DestroyDynamicObject(ATMInfo[params][aObje]);
    
    
catm-=1;
    
UpdateDynamic3DTextLabelText(ATMInfo[params][aLabel],0xFF0000FF,"");
    
DestroyDynamicMapIcon(ATMInfo[params][aMicon]);
    return 
1;

Reply


Messages In This Thread
Help - by Zorono - 23.08.2016, 18:59
Re: Help - by K0P - 23.08.2016, 19:03
Re: Help - by Stinged - 23.08.2016, 19:34
Re: Help - by Marricio - 23.08.2016, 20:11
Re: Help - by Zorono - 23.08.2016, 20:19
Re: Help - by Stinged - 23.08.2016, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)