Loop bug (Pickups/Checkpoints)
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
If it used to work and now doesn't then something must have changed. What did you change between those two times?
Nice question but I don't know.
P.S I tried to do that: https://sampforum.blast.hk/showthread.php?tid=301933
PHP код:
//Top of the mode
enum Interior_I
{
    
Name[30],
    
PickupID,
    
Float:OutsideX,
    
Float:OutsideY,
    
Float:OutsideZ,
    
Interior,
    
Float:InsideX,
    
Float:InsideY,
    
Float:InsideZ,
    
Float:BotX,
    
Float:BotY,
    
Float:BotZ,
    
BotSkin
}
static const 
InteriorInfo[][Interior_I] =
{
    
//{"Name",PickupID,OutsideX,OutsideY,OutsideZ,Interior,InsideX,InsideY,InsideZ,BotX,BotY,BotZ,Bot Skin},
    
{"MyPizza2",1582,2522.8096,-1679.2502,15.4970,5,372.3917,-133.4900,1001.4922,375.9249,-116.8117,1001.4922,155},
    {
"My pizza",1582,2422.7495,-1741.1678,13.5469,5,372.3917,-133.4900,1001.4922,375.9249,-116.8117,1001.4922,155}
};
// OnGameModeInit
for(new isizeof(InteriorInfo); i++)
    {
        
CreatePickup(InteriorInfo[i][PickupID],1,InteriorInfo[i][OutsideX], InteriorInfo[i][OutsideY], InteriorInfo[i][OutsideZ],-1);
        
format(Info[Str],100,"[%s]",InteriorInfo[i][Name]);
        
Create3DTextLabel(Info[Str], 0xB5B205FFInteriorInfo[i][OutsideX], InteriorInfo[i][OutsideY], InteriorInfo[i][OutsideZ]+0.55.000);
    }
//OnPlayerPickupPickup
for(new isizeof(InteriorInfo); i++)
    {
        if(
IsPlayerInRangeOfPoint(playerid,3.0,InteriorInfo[i][OutsideX], InteriorInfo[i][OutsideY], InteriorInfo[i][OutsideZ]))
        {
            
CurrentPu[playerid] = i;
            
SetPlayerVirtualWorldEx(playerid,i);
            
SetPlayerInterior(playerid,InteriorInfo[i][Interior]);
            
SetPlayerPos(playerid,InteriorInfo[i][InsideX],InteriorInfo[i][InsideY]+3.5,InteriorInfo[i][InsideZ]);
            break;
        }
    } 
And still nothing.
Reply


Messages In This Thread
Loop bug (Pickups/Checkpoints) - by RedSnow - 21.07.2014, 09:24
Re: Loop bug (Pickups/Checkpoints) - by osman2571 - 21.07.2014, 09:28
Re: Loop bug (Pickups/Checkpoints) - by RedSnow - 21.07.2014, 09:30
Re: Loop bug (Pickups/Checkpoints) - by osman2571 - 21.07.2014, 09:35
Re: Loop bug (Pickups/Checkpoints) - by RedSnow - 21.07.2014, 10:39
Re: Loop bug (Pickups/Checkpoints) - by RedSnow - 22.07.2014, 08:03
Re: Loop bug (Pickups/Checkpoints) - by RedSnow - 22.07.2014, 10:26
Re: Loop bug (Pickups/Checkpoints) - by RedSnow - 22.07.2014, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)