Code doesnt work well
#1

pawn Код:
if(strcmp(cmd, "/checkapps", true) == 0)
    {
      //if(PlayerInfo[playerid][pAdmin] >= 1)
      //{
            new str1[1280];
            format(str1, sizeof(str1), "Logs/waiters.ini");
            if(!strcmp(dini_Get(str1, "Name"),"None",false))
            {
               format(string, sizeof(string),"%s", dini_Get(str1, "Name"));
               SendClientMessage(playerid, COLOR_YELLOW, string);
            }
            else if(!strcmp(dini_Get(str1, "Name2"),"None",false))
            {
               format(string, sizeof(string),"%s", dini_Get(str1, "Name2"));
               SendClientMessage(playerid, COLOR_YELLOW, string);
            }
             }
the problem its writing Unknown Command, in this line: if(!strcmp(dini_Get(str1, "Name2"),"None",false))
if try to make if dini_get is not None so...
what the problem?
Reply


Messages In This Thread
Code doesnt work well - by vection - 02.09.2010, 13:50
Re: Code doesnt work well - by CyNiC - 02.09.2010, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)