03.02.2012, 12:02
(
Last edited by KiiD; 04/02/2012 at 12:59 AM.
)
First: I wanna know how I can make a command work in only the X, Y, Z coordinates I set it to.
Second: I wanna set commands only in a certain area I select, or maybe the whole area of a shop? once I can make shops I will need this feature so first things first, what do I do now? (Regarding the first question)
-----------------------------------------------------------------------------------------
What you said did help, but I've hit another problem with this code. Help?
I Think I'm Doing Something Wrong, Can Anyone Correct The Code For Me?
My Code:
The Errors I Get:
-------------------------------------------------------------------------------------------------------
See Page 2+ For My New Errors I Need Help With, THANKS!
Second: I wanna set commands only in a certain area I select, or maybe the whole area of a shop? once I can make shops I will need this feature so first things first, what do I do now? (Regarding the first question)
-----------------------------------------------------------------------------------------
What you said did help, but I've hit another problem with this code. Help?
I Think I'm Doing Something Wrong, Can Anyone Correct The Code For Me?
My Code:
Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/enter, true)) { { if(IsPlayerInRangeOfPoint(playerid, 2.0, 1154.5475, -1457.7513, 15.7969)) { SetPlayerPos(playerid, -25.884498,-185.868988,1003.546875); { SendClientMessage(playerid, 0xFFFFFFFF, "You Are Not Outside A 24/7"); { return 1; }
Code:
D:\khubb2\Desktop\SAMP\Blank Server\gamemodes\PROJECT.pwn(137) : warning 217: loose indentation D:\khubb2\Desktop\SAMP\Blank Server\gamemodes\PROJECT.pwn(140) : error 030: compound statement not closed at the end of file (started at line 136) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
See Page 2+ For My New Errors I Need Help With, THANKS!