SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 05/03/2011, 02:08 PM   #1
Celius
Little Clucker
 
Join Date: Jan 2011
Posts: 5
Reputation: 0
Default Adding New Objects!

Hey, converted my MTA file to a the .pwn CODE

How do i add it in? please tell me...
__________________
http://anx1ety.com/
New Signature soon!
Celius is offline   Reply With Quote
Old 05/03/2011, 03:12 PM   #2
Markx
Gangsta
 
Markx's Avatar
 
Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 944
Reputation: 39
Default Re: Adding New Objects!

Put it under public OnGameModelNit()
__________________
...Left samp for now, hope i gonna be back someday...

Markx is offline   Reply With Quote
Old 05/03/2011, 04:08 PM   #3
Celius
Little Clucker
 
Join Date: Jan 2011
Posts: 5
Reputation: 0
Default Re: Adding New Objects!

I made a new .pwn and i compiled it and got this,.


Code:
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(3) : warning 235: public function lacks forward declaration (symbol "OnGameModelNit")
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(5) : error 021: symbol already defined: "CreateObject"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
__________________
http://anx1ety.com/
New Signature soon!
Celius is offline   Reply With Quote
Old 05/03/2011, 04:25 PM   #4
Celius
Little Clucker
 
Join Date: Jan 2011
Posts: 5
Reputation: 0
Default Re: Adding New Objects!

please HELP!
__________________
http://anx1ety.com/
New Signature soon!
Celius is offline   Reply With Quote
Old 05/03/2011, 04:39 PM   #5
alpha500delta
High-roller
 
alpha500delta's Avatar
 
Join Date: Feb 2010
Posts: 1,152
Reputation: 91
Default Re: Adding New Objects!

Omg you litterally copied Markx, he made a grammar error -.-
Just put it like this

pawn Code:
public OnGameModeInit()
{
    CreateObject(MODEL, X, Y, Z, RX, RY, RZ);//Change to your own coords ofcourse
    return 1;
}
__________________
Skype: Alpha500delta | Steam: Alpha500delta
alpha500delta is offline   Reply With Quote
Old 05/03/2011, 06:56 PM   #6
ElChapoGuzman
Big Clucker
 
ElChapoGuzman's Avatar
 
Join Date: Jan 2011
Location: Mexico
Posts: 122
Reputation: 0
Default Re: Adding New Objects!

Quote:
Originally Posted by Celius View Post
I made a new .pwn and i compiled it and got this,.


Code:
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(3) : warning 235: public function lacks forward declaration (symbol "OnGameModelNit")
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(5) : error 021: symbol already defined: "CreateObject"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
you have 2 createobjects i think delete one the other one is just a warning
ElChapoGuzman is offline   Reply With Quote
Old 05/03/2011, 11:51 PM   #7
Celius
Little Clucker
 
Join Date: Jan 2011
Posts: 5
Reputation: 0
Default Re: Adding New Objects!

Code:
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(3) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(4) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(5) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(6) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(7) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(8) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(9) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(10) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(11) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(12) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(13) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(14) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(15) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(16) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(17) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(18) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(19) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(20) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(21) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(22) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(23) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(24) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(25) : error 017: undefined symbol "CreateObject"
C:\Users\Daniel\Desktop\Server\filterscripts\maxips.pwn(26) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


23 Errors.
Still got errors.
__________________
http://anx1ety.com/
New Signature soon!
Celius is offline   Reply With Quote
Old 05/03/2011, 11:58 PM   #8
Snipa
Banned
 
Join Date: May 2010
Posts: 807
Reputation: 115
Default Re: Adding New Objects!

You forgot to close a brace somewhere in your code.
Snipa is offline   Reply With Quote
Old 06/03/2011, 08:14 AM   #9
alpha500delta
High-roller
 
alpha500delta's Avatar
 
Join Date: Feb 2010
Posts: 1,152
Reputation: 91
Default Re: Adding New Objects!

Or you just forgot this:

pawn Code:
#include <a_samp>
__________________
Skype: Alpha500delta | Steam: Alpha500delta
alpha500delta is offline   Reply With Quote
Old 06/03/2011, 12:50 PM   #10
JackT
Big Clucker
 
Join Date: Feb 2011
Posts: 62
Reputation: 12
Default Re: Adding New Objects!

you have already defined CreateObject - erase 1 of em
__________________
Experienced Mapper available for any server,PM me and we can talk
JackT is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with adding new objects to 0.3c? Ex[C]uTivE Help Archive 7 20/12/2010 09:03 PM
Help Adding objects CJ101 Help Archive 1 29/11/2010 08:21 PM
Adding objects Angelo94 Help Archive 8 18/10/2009 02:20 PM
Adding Objects Hunchbakk Help Archive 1 07/03/2009 05:18 AM
Adding Objects StrickenKid Help Archive 2 02/02/2009 10:28 PM


All times are GMT. The time now is 06:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.