Having a problem with player spawns
#1

Hi guy's I'm having a problem setting up my player spawn, I'm extremely new to scripting so and help would be thankful.
What I'm trying to do seems very simple but somehow I'm still messing it up.

The code I'm using is.
Код:
public OnPlayerRequestClass(playerid, classid)
{
	GetPlayerPos(playerid,1481.2017,-1756.9124,17.5313);
	SetPlayerCameraPos(playerid,1481.4348,-1754.4647,16.5232,359.8627);
	SetPlayerFacingAngle(playerid,359.8627);
	SetPlayerCameraLookAt((playerid,1481.2017,-1756.9124,17.5313);
	return 1;
}
If I have done this right or not I don't know, I look okay to me anyway.

So when I compile the script I get this.
Код:
(46) : error 035: argument type mismatch (argument 2)
(47) : warning 202: number of arguments does not match definition
(49) : warning 213: tag mismatch
(49) : error 001: expected token: ",", but found ";"

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

2 Errors.
These errors could be very simple to fix but like I said I'm new to scripting so I lost here.

Before I input this snippet of code my server run fine, but after my server_log give me this message.
Код:
[17:49:42] I couldn't load any gamemode scripts. Please verify your server.cfg
[17:49:42] It needs a gamemode0 line at the very least.
Can someone help me please.
Reply


Messages In This Thread
Having a problem with player spawns - by ADAPT - 09.07.2011, 16:45
Re: Having a problem with player spawns - by emon - 09.07.2011, 16:48
Re: Having a problem with player spawns - by Wesley221 - 09.07.2011, 16:49
Re: Having a problem with player spawns - by ||123|| - 09.07.2011, 16:49
Re: Having a problem with player spawns - by ADAPT - 09.07.2011, 16:56
Re: Having a problem with player spawns - by Kush - 09.07.2011, 16:58
Re: Having a problem with player spawns - by ||123|| - 09.07.2011, 16:58
Re: Having a problem with player spawns - by Wesley221 - 09.07.2011, 16:58
Re: Having a problem with player spawns - by ADAPT - 09.07.2011, 17:01
Re: Having a problem with player spawns - by Wesley221 - 09.07.2011, 17:47

Forum Jump:


Users browsing this thread: 2 Guest(s)