Commands are not showing.. - 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 are not showing.. (
/showthread.php?tid=439849)
Commands are not showing.. -
Kevin FOx - 27.05.2013
Okay i've a proplem with commands.. When i type it it doesnt show anything..
Such as:
pawn Код:
CMD:mole(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 3)
{
SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
return 1;
}
new string[128];
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mole [mole text]");
format(string, sizeof(string), "SMS: %s, Sender: MOLE (555)",params);
SendClientMessageToAllEx(COLOR_YELLOW, string);
return 1;
}
Its not showing compltley
and..
pawn Код:
if(sscanf(params, "s[32]dD", choice, bizid, amount))
{
SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /bedit [name] [bizid] [optional amount]");
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Commands: Exterior | Interior | Vault | Type | Price | Delete | Supplies");
return 1;
}
Its not showing this too!.. So please i need your help.
AW: Commands are not showing.. -
HurtLocker - 27.05.2013
I am not sure if this is the problem since I 've never used the isnull function, but perhaps using isnull and sscanf in the same script causes this. Try using in every command either only sscanf or only isnull.
Re: Commands are not showing.. -
Kevin FOx - 27.05.2013
Tried that way, Not working..
Re: Commands are not showing.. -
Cameltoe - 27.05.2013
try using strlen insted.
pawn Код:
#define MINIMUM_MOLE_TEXT (5) // Change this to whatever you want the minimum to be.
if(strlen(params) < MINIMUM_MOLE_TEXT) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mole [mole text]");
Re: Commands are not showing.. -
Kevin FOx - 27.05.2013
Nothing happened.!
Re: Commands are not showing.. -
DobbysGamertag - 27.05.2013
Why don't you change it to sscanf?
It seems easier to work with IMO.