SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/06/2015, 11:52 AM   #1
kyriakos587
Huge Clucker
 
kyriakos587's Avatar
 
Join Date: Sep 2012
Posts: 284
Reputation: 15
Default CreatePlayerObject

Hello,

i wanted to know that where can i add the CreatePlayerObject its a map please say it
__________________
Tutorials
None

FilterScript
Song System
AntiSpawn System
CoolAdmin Version

Current Project
Ultimate Gaming Freeroam(5%)
kyriakos587 is offline   Reply With Quote
Old 23/06/2015, 11:54 AM   #2
Stanford
High-roller
 
Stanford's Avatar
 
Join Date: Feb 2012
Posts: 1,037
Reputation: 84
Default Re: CreatePlayerObject

Add it under OnPlayerConnect (if you do not need it to be created only for specific player and for all use CreateObject or CreateDynamicObject, but make sure that you have included streamer and added the plugin in your server.cfg)
__________________
Y_Less: "That code compiles perfectly, but I can tell you now it won't make me a cup of tea."

Y_Less: "I've said this before. People think that MySQL is some simple plug-and-play magic bullet that you can use to just make your mode instantly better. They don't realise that the "L" in "SQL" means "language". So instead of programming PAWN, and using a bit of this mystery thing, you are now programming in two languages at once. If you spend months learning PAWN, you should spend the same time learning SQL, if not more - it is probably the more complex of the two languages, and not something that just gets bolted on to the side."
Stanford is offline   Reply With Quote
Old 23/06/2015, 12:04 PM   #3
kyriakos587
Huge Clucker
 
kyriakos587's Avatar
 
Join Date: Sep 2012
Posts: 284
Reputation: 15
Default Re: CreatePlayerObject

This is the error i got

Code:
C:\Users\Administrator\Desktop\Freeroam\pawno\include\streamer.inc(338) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterCheckpoint")
C:\Users\Administrator\Desktop\Freeroam\pawno\include\streamer.inc(357) : warning 201: redefinition of constant/macro (symbol "OnPlayerLeaveCheckpoint")
C:\Users\Administrator\Desktop\Freeroam\gamemodes\freeroam.pwn(104) : error 021: symbol already defined: "CreatePlayerObject"
C:\Users\Administrator\Desktop\Freeroam\gamemodes\freeroam.pwn(343) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
the code of 104

Code:
	CreatePlayerObject(playerid, 19128, -66.40160, 2487.00513, 34.75180,   80.00000, 0.00000, -90.00000);
__________________
Tutorials
None

FilterScript
Song System
AntiSpawn System
CoolAdmin Version

Current Project
Ultimate Gaming Freeroam(5%)
kyriakos587 is offline   Reply With Quote
Old 23/06/2015, 03:37 PM   #4
KillerDVX
Banned
 
Join Date: Sep 2012
Location: /goto KillerDVX - You've been teleported to forum.sa-mp.com.
Posts: 690
Reputation: 54
Default Re : CreatePlayerObject

Quote:
error 021: symbol already defined: "CreatePlayerObject"
You've already defined it, that what your code's saying.


EDIT: Here you go an exemple of use : https://wiki.sa-mp.com/wiki/CreatePlayerObject
KillerDVX 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
CreatePlayerObject TakeiT Scripting Help 5 14/02/2015 05:23 PM
CreatePlayerObject TakeiT Scripting Help 1 14/11/2014 08:21 PM
CreatePlayerObject TaLhA XIV Scripting Help 8 21/07/2012 11:13 AM
Can i use createplayerobject SourceCode Scripting Help 3 04/02/2012 04:44 AM
Freeze and CreatePlayerObject Pokerface78 Scripting Help 0 18/01/2012 02:21 AM


All times are GMT. The time now is 06:12 AM.


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