SA-MP Forums Archive
[HELP] Need to fix these errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Need to fix these errors (/showthread.php?tid=324148)



[HELP] Need to fix these errors - Rohan_Ubhare - 08.03.2012

EDIT: I fixed it.


Re: [HELP] Need to fix these errors - SsHady - 08.03.2012

Post your Code So we can Fix it


Re: [HELP] Need to fix these errors - Faisal_khan - 08.03.2012

Hey post your code.


Re: [HELP] Need to fix these errors - Rohan_Ubhare - 08.03.2012

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


Re: [HELP] Need to fix these errors - Mark™ - 08.03.2012

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.


Re: [HELP] Need to fix these errors - Rohan_Ubhare - 08.03.2012

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" 



Re: [HELP] Need to fix these errors - Mark™ - 08.03.2012

post line 2574 here