Help me ! Please :D !
#1

Hello ... I wanted , like all scripters , im not best scripter , so please , dont judge me if I dont know scripting...
so.... I made a teleport command ! Look Here:

Code:
	if (strcmp("/yesman", cmdtext, true, 10) == 0)
	{
		SetPlayerPos(playerid, 217,1699.3818,-2197.0549,13.3750,270.1485);
		SendClientMessage(playerid, -1, "Message");
		return 1;
	}
    return 0;
}
I compiled. with 2 errors , but when tried the command on server , he put me to anther location , not to location what I wanted.... and ... I had 2 errors , but , filescript loaded with 2 errors !

Look errors :

Code:
C:\Users\tedi\Desktop\JOCURI SI PROGRAME\Romania Fantastic Stunt bY Teddy\Fantastic Stunt bY Teddy\filterscripts\Trenuletul.pwn(208) : warning 202: number of arguments does not match definition
C:\Users\tedi\Desktop\JOCURI SI PROGRAME\Romania Fantastic Stunt bY Teddy\Fantastic Stunt bY Teddy\filterscripts\Trenuletul.pwn(208) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Can you help me to solve , and if you can , can say to me , how you did ? To teleport in that location I want ! Thanks very much !
Reply
#2

Code:
SetPlayerPos(playerid, 1699.3818,-2197.0549,13.3750);
SetPlayerFacingAngle( playerid, 270.1485);
You put the angel in the setplayerpos, it's worng try to replace it.
+rep if I helped.
Reply
#3

And SetPlayerFacingAngle is always 270.1485 , or I need to change him. If I need to change him , where I know what is FacingAngle for that position?
Reply
#4

Quote:
Originally Posted by TeddyYeah
View Post
And SetPlayerFacingAngle is always 270.1485 , or I need to change him. If I need to change him , where I know what is FacingAngle for that position?
I placed the angel you need, you post it on SetPlayerPos ,believe me it will work.

+rep me please
Reply
#5

Quote:
Originally Posted by TeddyYeah
View Post
And SetPlayerFacingAngle is always 270.1485 , or I need to change him. If I need to change him , where I know what is FacingAngle for that position?
To know what's the facing angle next time you would like to get it you will just have to get to where you want, face where you want and /save
After you perform that action you can go and look for it over Documents --> GTA San Andreas User Files --> SAMP --> rawpositions.txt
Here's an example of what you will have to extract:
Code:
1586.8463,-1635.0133,13.3828,243.7564 ;
1586.8463 - X || -1635.0133 - Y || 13.3828 - Z || 243.7564 - Facing Angle

Glad to help, rep me if you could
Reply
#6

Where I know what is Facing Angle for a position? I want to put that command to anthor position? If you answer me i will +rep you !
Reply
#7

You must be little clucker to give a reputation...
Reply
#8

Quote:
Originally Posted by TeddyYeah
View Post
Where I know what is Facing Angle for a position? I want to put that command to anthor position? If you answer me i will +rep you !
My friend Mazoz helped you with it, if you /save , you get the x,y,z,A.
very simple +rep both of us ^^
Reply
#9

Quote:
Originally Posted by Clad
View Post
You must be little clucker to give a reputation...
We all are, we all are...
Reply
#10

Quote:
Originally Posted by TeddyYeah
View Post
Where I know what is Facing Angle for a position? I want to put that command to anthor position? If you answer me i will +rep you !
Code:
1586.8463,-1635.0133,13.3828,243.7564
The last 2 numbers are the facing angel "243.7564" Hope u understand,
and bro please For more inforemation check Sa-mp wiki all scripters started from there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)