31.01.2013, 06:12
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:
@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;
}