Scripting Help: I get 12 warnings
#7

Quote:
Originally Posted by Samieastwood
Посмотреть сообщение
13353
PHP код:
    if(IsPlayerInRangeOfPoint(playerid3.0,240.8950,112.7382,1003.2188,270.1587))//Mistake #1
        
{//LAPD
             
if(PlayerInfo[playerid][pWantedLevel] >= 1)
             {
                
format(stringsizeof(string), "%s is a wanted individual, and is surrendering at your station!(LAPD)"GetPlayerNameEx(playerid));
                
SendRadioMessage(1DEPTRADIOstring);
             }
            return 
1;
        }
        else if(
IsPlayerInRangeOfPoint(playerid4.02531.3040,-1659.8525,562.8000,104.7559))//#2
        
{//LASD
            
if(PlayerInfo[playerid][pWantedLevel] >= 1)
             {
                
format(stringsizeof(string), "%s is a wanted individual, and is surrendering at your station(LASD)!"GetPlayerNameEx(playerid));
                
SendRadioMessage(7DEPTRADIOstring);
             }
            return 
1;
        }
        else if(
IsPlayerInRangeOfPoint(playerid3.0,234.9487,165.0764,1003.0300,80.0004))//#3
        
{//LVMPD
            
if(PlayerInfo[playerid][pWantedLevel] >= 1)
             {
                
format(stringsizeof(string), "%s is a wanted individual, and is surrendering at your station(LVMPD)!"GetPlayerNameEx(playerid));
                
SendRadioMessage(19DEPTRADIOstring);
             }
            return 
1;
        }
     }
    return 
0;

31729 to 31734
PHP код:
///////////////////// TURN IN POINTS /////////////////////
    
CreateDynamic3DTextLabel("/turnin",COLOR_DBLUE240.8950112.73821003.2188270.1587,4.0);///turnin(LAPD)//#4
    
CreatePickup(124723240.8950112.73821003.2188270.1587, -1); // LAPD Turnin#5
    
CreateDynamic3DTextLabel("/turnin",COLOR_DBLUE2531.3040, -1659.8525,562.8000104.7559,4.0);///turnin(LASD)#6
    
CreatePickup(1247232531.3040, -1659.8525562.8000104.7559, -1); // LASD Turnin#7
    
CreateDynamic3DTextLabel("/turnin",COLOR_DBLUE234.9487165.07641003.030080.0004,4.0);///turnin(LVMPD)#8
    
CreatePickup(124723234.9487165.07641003.030080.0004, -1); // LVMPD Turnin#9 
Mistakes
Mistakes #1-3
-Refer https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Mistake #4 and #6 and #8
-
Код:
CreateDynamic3DTextLabel ( text [],  color ,  Float : X ,  Float : Y ,  Float : Z ,  Float : DrawDistance )
Mistake #5,7,9
-Refer https://sampwiki.blast.hk/wiki/CreatePickup

From what I see, you added Angle for all the Functions..
To check range, we dont need angle..
3D texts are visible same way from all angle, so they dont need an angle to look to either..
Pickups are also 3D objects, they dont need angle.

Edit: Refer my post, and credits goes to the guy who posted first.. He already made the point clear.. Was typing when he posted it :P
Reply


Messages In This Thread
Scripting Help: I get 12 warnings - by Samieastwood - 22.11.2014, 20:35
Re: Scripting Help: I get 12 warnings - by Indom - 22.11.2014, 20:47
Re: Scripting Help: I get 12 warnings - by Samieastwood - 22.11.2014, 21:03
Re: Scripting Help: I get 12 warnings - by JaysonJee - 22.11.2014, 21:35
Re: Scripting Help: I get 12 warnings - by sammp - 22.11.2014, 21:44
Re: Scripting Help: I get 12 warnings - by Samieastwood - 22.11.2014, 21:46
Re: Scripting Help: I get 12 warnings - by Mic_H - 22.11.2014, 21:55
Re: Scripting Help: I get 12 warnings - by Write - 22.11.2014, 22:00
Re: Scripting Help: I get 12 warnings - by Samieastwood - 22.11.2014, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)