SA-MP Forums Archive
Error - 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: Error (/showthread.php?tid=293797)



Error - seanny - 30.10.2011

Hello, I am getting this error

Code:
C:\Users\Shaun\Desktop\LSC-RP\gamemodes\drp.pwn(413) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Here is my Code

pawn Code:
public OnGameModeInit()
{
        SetGameModeText("D-RP 0.1 Beta");
        print("Auto Weather loaded.");
        SetTimer("AutoWeather", 600000, 1);
        AutoWeather();
        DisableInteriorEnterExits()//Disables the Shitty Markers
        return 1;//here is Line 413
}



Re: Error - Norn - 30.10.2011

pawn Code:
DisableInteriorEnterExits(); //Disables the Shitty Markers
Always look over your code.


Re: Error - Yamoo - 30.10.2011

pawn Code:
public OnGameModeInit()
{
        SetGameModeText("D-RP 0.1 Beta");
        print("Auto Weather loaded.");
        SetTimer("AutoWeather", 600000, 1);
        AutoWeather();
        DisableInteriorEnterExits();//Disables the Shitty Markers
        return 1;//here is Line 413
}



Re: Error - =WoR=G4M3Ov3r - 30.10.2011

DisableInteriorEnterExits();

Edit: Nvm

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 98 seconds.