Posts: 145
Threads: 38
Joined: May 2013
Reputation:
0
(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??
Posts: 508
Threads: 146
Joined: Jan 2014
Reputation:
0
On SetPlayerPos the arguments is
SetPlayerPos(playerid, X, Y, Z)
Not
SetPlayerPos(playerid, X, Y, Z, FacingAngle);
Posts: 145
Threads: 38
Joined: May 2013
Reputation:
0
can u send me the full fixed LINE?
Posts: 1,418
Threads: 63
Joined: Dec 2010
Reputation:
0
SetPlayerPos(playerid,1545.2606,-1674.9889,13.5600);
SetPlayerFacingAngle(playerid, 88.9077);
Posts: 1,767
Threads: 124
Joined: Mar 2010
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.