commands dont work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: commands dont work (
/showthread.php?tid=438011)
commands dont work -
ryanhawk31 - 18.05.2013
All my commands dont work, it just show blank :S without error, it has worked before but it doesent work no longer after i had a update, please help
This is 1 cmd:
pawn Код:
CMD:cr(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 4)
{
return SendClientMessageEx(playerid, COLOR_LIGHTRED, " You are not authorized to use that command.");
}
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
SendClientMessage(playerid, 0xFFFFFFFF, "You have added cutter rims to your vehicle.");
return 1;
}
AW: commands dont work -
HurtLocker - 18.05.2013
what update did you make?
Re: commands dont work -
ryanhawk31 - 18.05.2013
Just a update in a nother filterscript i tryed to remove the filterscript but it didnt work
Re: commands dont work -
NL-Sultan - 18.05.2013
pawn Код:
CMD:cr(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 4)
{
return SendClientMessageEx(playerid, COLOR_LIGHTRED, " You are not authorized to use that command.");
}
else
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not driving a vehicle.");
AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
SendClientMessage(playerid, 0xFFFFFFFF, "You have added cutter rims to your vehicle.");
return 1;
}
Don't you have to use 'else'? I'm not sure though!
Re: commands dont work -
ryanhawk31 - 18.05.2013
No because i dont have edited something in that command and it worked before but it dont work anymore :S all the commands in the GM is fucked
Re: commands dont work -
DobbysGamertag - 18.05.2013
using the same command processor throughout the filterscript?
Re: commands dont work -
Harry_F. - 18.05.2013
I think I had the same problem. I thought it was a command/script problem, but then I found out I had sscanf and sscanf2(2 versions) in my includes. Just remove one of the versions and it will work fine.
I also showed a few SS'es on my own thread. It just got solved out.
https://sampforum.blast.hk/showthread.php?tid=437631
I dont know what could it be else than that.