Load help
#1

I need help with this it won't load it when the server start, maybe you guys are able to help me, thanks in advance!


PHP код:
new File:file fopen("DroppedGuns.ini"io_read);
    if(
file)
    {
        new 
buffer[256], FileCoords[8][20];
        for(new 
0MAX_OBJg++)
        {
            
fread(filebuffer);
            
split(bufferFileCoords',');
            
dGunData[g][ObjPos][0] = floatstr(FileCoords[0]);
            
dGunData[g][ObjPos][1] = floatstr(FileCoords[1]);
            
dGunData[g][ObjPos][2] = floatstr(FileCoords[2]);
            
dGunData[g][ObjData][0] = strval(FileCoords[3]);
            
dGunData[g][ObjData][1] = strval(FileCoords[4]);
            
dGunData[g][ObjInt] = strval(FileCoords[5]);
            
dGunData[g][ObjWorld] = strval(FileCoords[6]);
            
dGunData[g][ObjType] = strval(FileCoords[6]);
            if(
dGunData[g][ObjData][0] > && dGunData[g][ObjData][1] != && dGunData[g][ObjPos][0] != 0)
            {
                switch(
dGunData[g][ObjType])
                  {
                    case 
1:
                      {
                        
dGunData[g][ObjID] = CreateDynamicObject(GunobjectIds[dGunData[g][ObjData][0]], dGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-193.7120.0120.0dGunData[g][ObjWorld], dGunData[g][ObjInt], -1200.00.0);
                        
dGunData[g][ObjText] = CreateDynamic3DTextLabel("{339900}Item\n(/pickupitem)",0xFFFFFFFFdGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-110.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0dGunData[g][ObjWorld], dGunData[g][ObjInt], -190);
                        
printf("* %s loaded: %f,%f,%f,"GunNames[dGunData[g][ObjData][0]], dGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-1);
                      }
                    case 
2:
                    {
                        
dGunData[g][ObjID] = CreateDynamicObject(1578dGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-193.7120.0120.0dGunData[g][ObjWorld], dGunData[g][ObjInt], -1200.00.0);
                        
dGunData[g][ObjText] = CreateDynamic3DTextLabel("{339900}Item\n(/pickupitem)",0xFFFFFFFFdGunData[g][ObjPos][0], dGunData[g][ObjPos][1], dGunData[g][ObjPos][2]-110.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0dGunData[g][ObjWorld], dGunData[g][ObjInt], -190);
                    }
                }
            }
        }
    } 
Reply


Messages In This Thread
Load help - by N0FeaR - 19.06.2016, 19:36
Re: Load help - by Vince - 19.06.2016, 19:47
Re: Load help - by N0FeaR - 20.06.2016, 15:48
Re: Load help - by Konstantinos - 20.06.2016, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)