Code doesnt work well
#2

The problem is what your command is without return.
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);
        return 1;
    }
    else if(!strcmp(dini_Get(str1, "Name2"),"None",false))
    {
        format(string, sizeof(string),"%s", dini_Get(str1, "Name2"));
        SendClientMessage(playerid, COLOR_YELLOW, string);
        return 1;
    }
}
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)