Problm with main() - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problm with main() (
/showthread.php?tid=267634)
Problm with main() -
Aizen - 09.07.2011
Well i'm confuse with main() problem
See this error
Код:
D:\Test server\filterscripts\car_Valo.pwn(26) : error 001: expected token: ";", but found "-identifier-"
Number 26 is main(),well this is the code
http://pastebin.com/cmQbvs25
Re: Problm with main() -
iJumbo - 09.07.2011
if u want to make a gamemode you have to delete
Код:
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
or if u want a fs delete
Код:
#if defined FILTERSCRIPT
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
valo = AddStaticVehicle(447,2492.49267578,-1666.58959961,13.44375038,88.00000000,-1,-1);
return 1;
}
public OnGameModeExit()
{
return 1;
}
Re: Problm with main() -
Aizen - 09.07.2011
Still have a problem at main() -,-,i make a fs
Re: Problm with main() -
iJumbo - 09.07.2011
you dont need main with a fs ...