CreatePlayerObject - 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: CreatePlayerObject (
/showthread.php?tid=578951)
CreatePlayerObject -
kyriakos587 - 23.06.2015
Hello,
i wanted to know that where can i add the CreatePlayerObject its a map please say it
Re: CreatePlayerObject -
Stanford - 23.06.2015
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)
Re: CreatePlayerObject -
kyriakos587 - 23.06.2015
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);
Re : CreatePlayerObject -
KillerDVX - 23.06.2015
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