SetPlayerPos HELP
#1

(11196) : warning 202: number of arguments does not match definition

SetPlayerPos(playerid,1545.2606,-1674.9889,13.5600,88.9077);

AddPlayerClass(266,1545.2606,-1674.9889,13.5600,88.9077,0,0,0,0,0,0); //


i want to make a TP CMDS and i am getting confuse with it

what codes i shoud Put from addplayerclass on Setplayerpos??
Reply
#2

On SetPlayerPos the arguments is

SetPlayerPos(playerid, X, Y, Z)

Not
SetPlayerPos(playerid, X, Y, Z, FacingAngle);
Reply
#3

can u send me the full fixed LINE?
Reply
#4

SetPlayerPos(playerid,1545.2606,-1674.9889,13.5600);
SetPlayerFacingAngle(playerid, 88.9077);
Reply
#5

Quote:
Originally Posted by Stgnature
Посмотреть сообщение
can u send me the full fixed LINE?
What is wrong with you? Can't you see the syntax of the SetPlayerPos function at wiki.sa-mp and manage it at your own? Without trying, you won't be able to script.

https://sampwiki.blast.hk/wiki/SetPlayerPos

Four parameters in that function:

- playerid,
- Float: x,
- Float: y,
- Float: z.

Manage that at your own. Syntax is there, just insert your values, and job done.

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
SetPlayerPos(playerid,1545.2606,-1674.9889,13.5600);
SetPlayerFacingAngle(playerid, 88.9077);
By doing this, you just want more threads like this. Teach them, instead of giving SIMPLE codes. Simple - can be easy to understand. Let them think, and shuffle their brains.
Reply
#6

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
SetPlayerPos(playerid,1545.2606,-1674.9889,13.5600);
SetPlayerFacingAngle(playerid, 88.9077);
i did it but my game get glitch i cant see buildings
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)