zcmd & sscanf command params not working as it should
#3

Not to mention you were using the c sscanf variable rather than the s sscanf variable. (s = string, c = character)

@RealCop the strcmp statements were not the same.

As RealCop228 said, but as a code:
pawn Код:
CMD:s(playerid, params[])
{
    if(isnull(params)) return 1;
    if(!strcmp(params, "ijungti", true))
    {
        IsvaizdosRinkimas[playerid] = true;
        TogglePlayerControllable(playerid, false);
        SendClientMessage(playerid, GREEN, "Išvaizdos rinkimas įjungtas.");
    }
    else if(!strcmp(params, "isjungti", true))
    {
    IsvaizdosRinkimas[playerid] = false;
    TogglePlayerControllable(playerid, true);
        SendClientMessage(playerid, GREEN, "Išvaizdos rinkimas išjungtas.");
    }
    return 1;
}
Reply


Messages In This Thread
zcmd & sscanf command params not working as it should - by Explos - 31.01.2013, 04:07
Re: zcmd & sscanf command params not working as it should - by Scenario - 31.01.2013, 04:51
Re: zcmd & sscanf command params not working as it should - by Threshold - 31.01.2013, 06:12
Re: zcmd & sscanf command params not working as it should - by Explos - 31.01.2013, 07:00

Forum Jump:


Users browsing this thread: 1 Guest(s)