CreatePlayerObject
#1

Hello,

i wanted to know that where can i add the CreatePlayerObject its a map please say it
Reply
#2

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)
Reply
#3

This is the error i got

Код:
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 © 1997-2006, ITB CompuPhase


2 Errors.
the code of 104

Код:
	CreatePlayerObject(playerid, 19128, -66.40160, 2487.00513, 34.75180,   80.00000, 0.00000, -90.00000);
Reply
#4

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://sampwiki.blast.hk/wiki/CreatePlayerObject
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)