Help - small problem?
#1

Код:
	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;
        }
When i try

/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?
Reply


Messages In This Thread
Help - small problem? - by NewYorkRP - 29.11.2010, 16:32
Re: Help - small problem? - by NewYorkRP - 29.11.2010, 16:50
Re: Help - small problem? - by Ash. - 29.11.2010, 17:05
Re: Help - small problem? - by NewYorkRP - 29.11.2010, 17:13
Re: Help - small problem? - by Ash. - 29.11.2010, 17:22
Re: Help - small problem? - by NewYorkRP - 29.11.2010, 18:00
Re: Help - small problem? - by NewYorkRP - 29.11.2010, 18:20
Re: Help - small problem? - by MadeMan - 29.11.2010, 18:52
Re: Help - small problem? - by NewYorkRP - 29.11.2010, 19:41
Re: Help - small problem? - by MadeMan - 29.11.2010, 19:53

Forum Jump:


Users browsing this thread: 2 Guest(s)