31.10.2012, 14:30
What's the mistake here, and I am a VERY new beginner, I went by instinct, can you tell me the mistake, not fix and give it? I want to fix it by myself - the only way to learn! Command is to tele player to the nearest building .
Код:
CMD:top(playerid,params[]) { GetPlayerPos(playerid, new float X, new float Y, new float Z); if (IsPlayerInRangeOfPoint() == IsValidObject()) { GetObjectPos(objectid,new float x, new float y, new float z); SetPlayerPos(x,y,z+10); } else SendClientMessage(playerid, -1, "No building nearby."); return 1; }