25.05.2010, 20:39
Hello,im creating a dm script,and i wanna make a /leave command but i want to make it work ONLY when the player is in dm area,
Leave command:
Errors:
Any help will be appreciated.Thanks!!!!!!
Leave command:
Код:
if(strcmp(cmdtext,"/leavedm", true) == 1) { if(IsPlayerInArea(playerid,x,y,z); //<---yes i got coordinates. -I want to make the area so if the player is in this area he can use the command to warp return SetPlayerPos(playerid,x,y,z); //<----yes i got coordinates. -So he can teleport. else if //-Wtf i wanted to try it,im a noob lol return 0 GameTextForPlayer(playerid, "You are not in /dm!"); //So if he is not in the selected area he wont teleport. }
Код:
error 004: function "IsPlayerInArea" is not implemented error 001: expected token: ")", but found ";" error 036: empty statement fatal error 107: too many error messages on one line