[HELP] Need to fix these errors
#1

EDIT: I fixed it.
Reply
#2

Post your Code So we can Fix it
Reply
#3

Hey post your code.
Reply
#4

PHP Code:
// MISSILES
    
sam1 AddStaticSAM(354.4741,2028.2898,26.1254);
    
sam2 AddStaticSAM(188.2001,2081.6643,26.1713);
    
sam3 AddStaticSAM(15.6897,1718.8661,26.1074);
    
sam4 AddStaticSAM(237.7682,1696.7734,26.1345);
    
SAM_start();
    
// END OF MISSILES 
-This for AddStaticSam

PHP Code:
{
            if(!(
PlayerInfo[playerid][pAdmin] >= 2))
            return 
SendClientMessage(playeridCOLOR_GREY"You are not authorized to use this command!");
            
ResetVehicleNeon(GetPlayerVehicleID(playerid));
            
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Neons has been removed from the vehicle!");
        } 
PHP Code:
}
        
ResetVehicleNeon(GetPlayerVehicleID(playerid));
        if(
IsPlayerInAnyVehicle(playerid)) 
and

PHP Code:
}
        
ResetVehicleNeon(GetPlayerVehicleID(playerid));
        if(
IsPlayerInAnyVehicle(playerid)) 
The above is not repeated i get that code 2 times
Reply
#5

for the first warning at 2574 add this line before that line

pawn Code:
forward OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost);
For AddStaticSAM download this include : https://sampforum.blast.hk/showthread.php?tid=115695 and put the include in your pawno>include folder and add #include<name of the .inc file> on the top of your script.
Reply
#6

It gives me 1 more error when I add the Line

PHP Code:
C:\Windows.old\Documents and Settings\Rohan\Desktop\backup\gamemodes\xrp.pwn(2574) : error 001expected token";"but found "public" 
Reply
#7

post line 2574 here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)