02.10.2009, 13:58
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:
I'm get this error:
141 line:
143 line:
146 line:
Thanks for help.
Код:
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; } }
Код:
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.
Код:
if(!strcmp(cmdtext, "/enter", true)) // Entrance
Код:
if(PlayerToPoint(1,playerid,2458.3530,1327.0610,10.8203))
Код:
return 1;