compiler crash
#1

PHP код:
CMD:createshop(playeridparams[])
    new 
string[80], file[50], labeltext[50], Float:XFloat:YFloat:Z;
       new 
store[15];
    
// if(!IsPlayerAdmin(playerid)) return 0;
    
if(sscanf(params"d"store)) return SendClientMessage(playerid0xB60000FF"Usage: /createshop (level)");
    if(
store <= ) return SendClientMessage(playerid0xB60000FF"Usage: /createshop (level)");
    else
    {
        if(!
dini_Exists("SRB.ini"))
        {
            
dini_Create("SRB.ini");
        }
        
GetPlayerPos(playeridXYZ);
        
dini_IntSet("SRB.ini""TotalBuilding", (dini_Int("SRB.ini""TotalBuilding") + 1));
        new 
ammunationid dini_Int("SRB.ini""CurrentAmmunationID");
        if(
ammunationid >= MAX_AMMUNATIONS) return SendClientMessage(playerid0xB60000FF"Unable to create more ammunations. There are already "#MAX_AMMUNATIONS" created. Increase limit in the script to create more.");
        
else
        {
                
format(stringsizeof(string), "Ammunation ID %d Created."ammunationid);
                
format(labeltextsizeof(labeltext), "Type /scanvenge to Search");
                
format(filesizeof(file), "/Files/%d.ini"ammunationid);
                if(!
dini_Exists(file))
                {
                     
dini_Create(file);
                }
                
dini_IntSet("SRB.ini""CurrentAmmunationID", (ammunationid 1));
                
dini_IntSet("SRB.ini""CurrentAmmunationWorld", (ammunationid 1000));
                
AmmunationCPOut[ammunationid] = CreateDynamicCP(XYZ1.500, -125.0);
        }
        
StoreLabel[dini_Int(file"StoreID")] = Create3DTextLabel(labeltext0x00BC00FFXYZ2501);
        
dini_Set(file"StoreName"labeltext);
        
dini_FloatSet(file"CPOutX"X);
        
dini_FloatSet(file"CPOutY"Y);
        
dini_FloatSet(file"CPOutZ"Z);
        
GetPosInFrontOfPlayer(playeridXY, -2.5);
        
dini_IntSet(file"StoreID"dini_Int("SRB.ini""TotalBuilding"));
        
SendClientMessage(playerid0xFFFF00AAstring);
    }
        return 
1;

here's my command
My compiler crash after adding these lines here
PHP код:
       new store[15];
    
// if(!IsPlayerAdmin(playerid)) return 0;
    
if(sscanf(params"d"store)) return SendClientMessage(playerid0xB60000FF"Usage: /createshop (level)");
    if(
store <= ) return SendClientMessage(playerid0xB60000FF"Usage: /createshop (level)");
    else
    { 
and before return I closed barrel with
PHP код:

Reply
#2

yes its working now thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)