Commands Problem -
Sarra - 28.08.2012
when i updated the sv to 0.3e many commands didn't work like:
/enter (i can't /enter to any interior)
/setskin PlayerID SkinID now it doesn't work (i can /setskin for myself! when i type /setskin SKINID i get it but what happened ? i can't set other players skin anymore)
/goto Place (now it doesn't work exp: /goto LS it doesn't teleport you = it teleports you yes but to your place not to the wanted place it means when i /goto place the player moves but in his place = it get teleported but in the same place where he is staying)
/enter (do you believe it? i can't /enter )
i believe that the sscanf is the problem!
exp /setskin code
pawn Код:
CMD:setskin(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
new string[128], giveplayerid, skinid;
if(sscanf(params, "ud", giveplayerid, skinid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /setskin [playerid] [skinid]");
if(IsPlayerConnected(giveplayerid))
{
if(!IsInvalidSkin(skinid))
{
if(GetPlayerSkin(giveplayerid) == skinid)
{
SendClientMessageEx( playerid, COLOR_WHITE, "The player you're trying to change skins of already is using the skin you're trying to set." );
}
else
{
PlayerInfo[giveplayerid][pChar] = skinid;
PlayerInfo[giveplayerid][pModel] = skinid;
format(string, sizeof(string), "Your skin has been changed to ID %d by Administrator %s.", skinid, GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have given %s skin ID %d.", GetPlayerNameEx(giveplayerid), skinid);
SendClientMessageEx(playerid, COLOR_WHITE, string);
SetPlayerSkin(giveplayerid, PlayerInfo[giveplayerid][pChar]);
}
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Invalid skin ID!");
}
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}
I am sure that the script is fine, the problem is with the sscanf i think
plz help, thanks
Re : Commands Problem -
Sarra - 28.08.2012
the sscanf is updated to the last version
Re: Commands Problem - Jarnu - 28.08.2012
download new sscanf for 0.3e and re-compile GM with it!
https://sampforum.blast.hk/showthread.php?tid=120356
Re : Commands Problem -
Sarra - 28.08.2012
I DID, ( I said it is updated :
Re : Commands Problem -
Sarra - 29.08.2012
the sscanf is not working.... when i type a sscanf command it doesn't appear on the log but it works fine for ZCMD commands
Re: Commands Problem -
ZBits - 29.08.2012
if you have the latest sscanf
Go to PAWNO manually and oepn your GM and then compile it
Tell me if it works
+rep if that helped
Re: Commands Problem -
Devilxz97 - 29.08.2012
can iu read it carefully ? he has the latest version of sscanf.
and mybe the problems is with the commands. Next time read it carefully.
and stop asking for Rep. they will give u rep when u help them solve the problem.ty
Re: Commands Problem -
ZBits - 29.08.2012
Chill dude i know he has the latest sscanf And read my message to i said if you have the latest sscanf
i didnt say that use the latest sscanf and the +rep thing i type it cause i like it
Re: Commands Problem -
Devilxz97 - 29.08.2012
someone will know how to do it dude.
Re : Re: Commands Problem -
Sarra - 29.08.2012
Didn't help :/ I really don't get it, ZCMD commands are working but sscanf isn't working O.o
please help