Error when adding mapping - 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 when adding mapping (
/showthread.php?tid=520684)
Error when adding mapping -
Jigsaw123 - 19.06.2014
Hello..
Im trying to create a gamemode from scratch, and when i add mapping it gives me this error:
Код:
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(121) : error 021: symbol already defined: "CreateDynamicObject"
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1011) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1015) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1018) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1037) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1044) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1245) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1279) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1280) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1286) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1303) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1304) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1305) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1316) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1322) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1347) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1360) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1371) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1375) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1381) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1416) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1433) : warning 217: loose indentation
C:\Users\USER\Desktop\High School RP\gamemodes\HS-RP.pwn(1459) : warning 217: loose indentation
Pawn compiler 3.2.3664.samp Copyright © 1997-2006, ITB CompuPhase
1 Error.
This is the script:
http://pastebin.com/MiSwDn9G
Re: Error when adding mapping -
[WSF]ThA_Devil - 19.06.2014
put it inside: { } tags of OnGameModeInit, otherwise pawn thinks that you're trying to declare CreateDynamicObject again
Re: Error when adding mapping -
Jigsaw123 - 20.06.2014
That doesn't work, just gives more errors, Any other ways?
Re: Error when adding mapping -
Rittik - 20.06.2014
Show the code.
Re: Error when adding mapping -
Jigsaw123 - 20.06.2014
The Code is in Pastebin ^^ The link is there
Re: Error when adding mapping -
Dziugsas - 20.06.2014
Your putting it in the wrong place.Put it under OnGameModeInit
Re: Error when adding mapping -
Dziugsas - 20.06.2014
public OnGameModeInit()
{
CreateObject(.....);
return 1;
}
Re: Error when adding mapping -
Beckett - 20.06.2014
You're doing it wrong, it should be under
OnGameModeInit as the first poster said, and if it shows more errors post them here.