Small problem
#1

Okay so this loop doesnt work properly, im trying to get weapon from ground but it doesnt do it

PHP код:
for(new 0sizeof(GunInfo); i++) {
        if(
IsPlayerInRangeOfPoint(playerid,5.0,GunInfo[i][GunX],GunInfo[i][GunY],GunInfo[i][GunZ])) {
            if(
GetPlayerVirtualWorld(playerid) == GunInfo[i][GunWorld]) {
                
DestroyDynamicObject(GunObject[i]);
                
GunInfo[i][GunX] = 2000.00;
                
GunInfo[i][GunY] = 2000.00;
                
GunInfo[i][GunZ] = 3000.00;
                
GunInfo[i][GunWorld] = 666;
                
GivePlayerWeapon(playerid,GunInfo[i][GunWeaponID],GunInfo[i][GunWeaponAmmo]);
                
GunInfo[i][GunX] = 2000.00;
            }
        }
    } 
PHP код:
enum Ddata {
    
GunWeaponID,
    
GunWeaponAmmo,
    
Float:GunX,
    
Float:GunY,
    
Float:GunZ,
    
GunWorld,
    
GunInterior
};
new 
GunInfo[MAX_GUNDROP][Ddata],
    
GunObject[MAX_GUNDROP]; 
Reply


Messages In This Thread
Small problem - by Squirrel - 13.01.2016, 14:21
Re: Small problem - by LetsOWN[PL] - 13.01.2016, 14:57
Re: Small problem - by Squirrel - 13.01.2016, 16:23
Re: Small problem - by -CaRRoT - 13.01.2016, 17:17
Re: Small problem - by Squirrel - 13.01.2016, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)