[FilterScript] [FS] Saving player position and loading it on the next login
#8

Quote:
Originally Posted by Alice[WS
]
Good work ! But i have another problem.

I don't want my player respawn at the LS hospital, but at its spawn. With 1 player class there is no problem, but when i tried to add the 2nd player class it shown me some errors.

Код:
C:\Users\isasteppe\Desktop\ServeurGTA\filterscripts\saveposition.pwn(76) : error 029: invalid expression, assumed zero
C:\Users\isasteppe\Desktop\ServeurGTA\filterscripts\saveposition.pwn(83) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Here is the modificated script :
----------
Btw i'm a newbie in scripting (started some days ago), i can have typed wrong things.
What exactly are you trying to do when the play dies. Are you trying to make the player respawn in a random position after he/she dies. If thats what you are trying to do then you don't have to use cases. And why do you have case 0 and case 1 in the OnPlayerRequestClass. You need to put something like that in OnPlayerRequestClass

Код:
	SetPlayerInterior(playerid, 0);
	SetPlayerPos(playerid,512.8511,-17.5289,1001.5653);
	SetPlayerFacingAngle(playerid, 328.6663);
	SetPlayerCameraPos(playerid,514.8894,-14.1297,1001.5653+1);
	SetPlayerCameraLookAt(playerid,512.8511,-17.5289,1001.5653);
	ApplyAnimation(playerid,"DANCING","dnce_M_b",4.0,1,0,0,0,-1);
	SetPlayerInterior(playerid, 3);
Remove the one you got. And the problem should be fixed.
Reply


Messages In This Thread
[FS] Saving player position and loading it on the next login - by salehyassin - 08.08.2009, 21:43
Re: [FS] Saving player position and loading it on the next login - by Doppeyy - 08.08.2009, 22:01
Re: [FS] Saving player position and loading it on the next login - by LuxurioN™ - 09.08.2009, 00:53
Re: [FS] Saving player position and loading it on the next login - by ruarai - 09.08.2009, 03:18
Re: [FS] Saving player position and loading it on the next login - by nuriel8833 - 09.08.2009, 08:06
Re: [FS] Saving player position and loading it on the next login - by ruarai - 09.08.2009, 09:55
Re: [FS] Saving player position and loading it on the next login - by Alice[WS] - 09.08.2009, 15:46
Re: [FS] Saving player position and loading it on the next login - by salehyassin - 10.08.2009, 02:48
Re: [FS] Saving player position and loading it on the next login - by salehyassin - 10.08.2009, 02:49
Re: [FS] Saving player position and loading it on the next login - by salehyassin - 10.08.2009, 02:53
Re: [FS] Saving player position and loading it on the next login - by [P7]Vagrant - 10.08.2009, 03:21
Re: [FS] Saving player position and loading it on the next login - by ruarai - 10.08.2009, 06:02
Re: [FS] Saving player position and loading it on the next login - by Mauka4 - 10.08.2009, 17:01
Re: [FS] Saving player position and loading it on the next login - by salehyassin - 10.08.2009, 22:58
Re: [FS] Saving player position and loading it on the next login - by shady91 - 10.08.2009, 23:07
Re: [FS] Saving player position and loading it on the next login - by Cracker - 11.08.2009, 00:40
Re: [FS] Saving player position and loading it on the next login - by ruarai - 11.08.2009, 06:34
Re: [FS] Saving player position and loading it on the next login - by dafel2 - 11.08.2009, 07:07
Re: [FS] Saving player position and loading it on the next login - by Mauka4 - 11.08.2009, 12:49
Re: [FS] Saving player position and loading it on the next login - by salehyassin - 11.08.2009, 15:53
Re: [FS] Saving player position and loading it on the next login - by salehyassin - 11.08.2009, 16:02
Re: [FS] Saving player position and loading it on the next login - by Machinehank34 - 11.08.2009, 16:13
Re: [FS] Saving player position and loading it on the next login - by XCultz - 21.08.2009, 03:20
Re: [FS] Saving player position and loading it on the next login - by shady91 - 21.08.2009, 05:07
Re: [FS] Saving player position and loading it on the next login - by Karaula - 21.08.2009, 07:49
Re: [FS] Saving player position and loading it on the next login - by [LF]Mr.Lucci - 25.08.2009, 20:28
Re: [FS] Saving player position and loading it on the next login - by Imran.Abbas - 26.08.2009, 11:00
Re: [FS] Saving player position and loading it on the next login - by MatrixBoY - 26.08.2009, 14:46
Re: [FS] Saving player position and loading it on the next login - by Karaula - 27.08.2009, 09:11
Re: [FS] Saving player position and loading it on the next login - by Mike Garber - 23.08.2010, 16:40
Re: [FS] Saving player position and loading it on the next login - by Phanto90 - 04.06.2011, 05:59
Re: [FS] Saving player position and loading it on the next login - by PhoenixB - 13.08.2011, 21:16
Re: [FS] Saving player position and loading it on the next login - by [HP]Napola - 15.08.2012, 17:11
Re: [FS] Saving player position and loading it on the next login - by Mark Shade - 15.08.2012, 17:24
Re: [FS] Saving player position and loading it on the next login - by OuDayas - 10.01.2019, 16:57
Re: [FS] Saving player position and loading it on the next login - by xSkin - 10.01.2019, 22:30

Forum Jump:


Users browsing this thread: 4 Guest(s)