Help with command.
#1

So. I'm creatin' my RP server from 0. So. I want to make entrance. my bulding is in LS Airport ( building build from empty garages. It's like walls. It without interior ). I want, that when i type command, player gonna be teleported there. My code:
Код:
if(!strcmp(cmdtext, "/enter", true)) // Entrance
	{
	if(PlayerToPoint(1,playerid,2458.3530,1327.0610,10.8203))
	{
	SetPlayerPos(playerid,1960.8862,-2347.9216,13.5469)
	return 1;
	}
	}
I'm get this error:
Код:
C:\Documents and Settings\Samsung\Desktop\LTRP\gamemodes\LTRP.pwn(141) : error 010: invalid function or declaration
C:\Documents and Settings\Samsung\Desktop\LTRP\gamemodes\LTRP.pwn(143) : error 010: invalid function or declaration
C:\Documents and Settings\Samsung\Desktop\LTRP\gamemodes\LTRP.pwn(146) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
141 line:
Код:
if(!strcmp(cmdtext, "/enter", true)) // Entrance
143 line:
Код:
if(PlayerToPoint(1,playerid,2458.3530,1327.0610,10.8203))
146 line:
Код:
return 1;
Thanks for help.
Reply


Messages In This Thread
Help with command. - by cepiokas - 02.10.2009, 13:58
Re: Help with command. - by ded - 02.10.2009, 14:11
Re: Help with command. - by cepiokas - 02.10.2009, 14:22
Re: Help with command. - by Peter_Corneile - 02.10.2009, 14:24
Re: Help with command. - by ded - 02.10.2009, 14:25
Re: Help with command. - by Peter_Corneile - 02.10.2009, 14:26
Re: Help with command. - by cepiokas - 02.10.2009, 14:37
Re: Help with command. - by Peter_Corneile - 02.10.2009, 14:42
Re: Help with command. - by cepiokas - 02.10.2009, 14:44
Re: Help with command. - by Peter_Corneile - 02.10.2009, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)