29.11.2010, 16:32
(
Последний раз редактировалось NewYorkRP; 29.11.2010 в 17:07.
)
Код:
if(strcmp(cmd,"/entranceedit",true)==0) { if(PlayerInfo[playerid][pAdmin] < 1337) { SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use this command."); return 1; } new string[128]; new id = strvalEx(tmp); format(string, sizeof(string), "Entrances/Entrance_%d.ini", id); if(!fexist(string)) { SendClientMessage(playerid, COLOR_GREY, "Invalid entrance ID!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /entranceedit [entrance id] [usage]"); SendClientMessage(playerid, COLOR_GREY, "USAGE: Interior, Exterior or Factiontype."); return 1; }
/entranceedit 1 Exterior
It always pops up 'Invalid entrance ID'.
BUT: I do have Entrances/Entrance_1.ini
Can someone help? Why doesnt it work?
The command works, and has no errors, but the custom error message pops up, saying 'Invalid entrance ID'.
How can i fix this?