Error when adding mapping
#1

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
Reply
#2

put it inside: { } tags of OnGameModeInit, otherwise pawn thinks that you're trying to declare CreateDynamicObject again
Reply
#3

That doesn't work, just gives more errors, Any other ways?
Reply
#4

Show the code.
Reply
#5

The Code is in Pastebin ^^ The link is there
Reply
#6

Your putting it in the wrong place.Put it under OnGameModeInit
Reply
#7

public OnGameModeInit()
{
CreateObject(.....);
return 1;
}
Reply
#8

You're doing it wrong, it should be under OnGameModeInit as the first poster said, and if it shows more errors post them here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)