Magic Wand fail
#7

Quote:
Originally Posted by DarkSkull
Посмотреть сообщение
You're not checking if the loop is finding your playerid or not. This should fix it.

PHP код:
for(new 0MAX_PLAYERSi++)
{
    if(
i==playerid) continue;
    if(
GetDistanceBetweenPlayers(playerid,i) < 6.0)
    {
        new 
Float:vec[4];
        
GetPlayerFacingAngle(i,Float:Angle);
        
GetPlayerVelocity(i,Float:x,Float:y,Float:z);
        
SetPlayerVelocity(i,Float:x+0.3,Float:y+0.3,Float:z+0.2);
        
SetPlayerFacingAngle(i,Float:Angle);
        
GetPlayerVelocity(i,vec[0],vec[1],vec[2]); GetPlayerFacingAngle(i,vec[3]);
    }

lemme try
Reply


Messages In This Thread
Magic Wand fail - by ProBro - 12.05.2017, 19:56
Re: Magic Wand fail - by Kane - 12.05.2017, 20:22
Re: Magic Wand fail - by ProBro - 12.05.2017, 20:30
Re: Magic Wand fail - by Antenastyle - 12.05.2017, 21:14
Re: Magic Wand fail - by DarkSkull - 13.05.2017, 11:50
Re: Magic Wand fail - by Kubko - 13.05.2017, 12:55
Re: Magic Wand fail - by ProBro - 13.05.2017, 14:36
Re: Magic Wand fail - by ProBro - 13.05.2017, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)