ZCMD error? - 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: ZCMD error? (
/showthread.php?tid=658474)
ZCMD error? -
andrey1311 - 04.09.2018
PHP код:
#include <a_samp>
#include <izcmd>
#include <a_mysql>
#include <streamer>
#include <foreach>
#include <sscanf2>
PHP код:
CMD:b(playerid, params[])
{
if(!LoggedIn[playerid]) return 1;
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE : /b [Local OOC]");
new string[128];
format(string, sizeof(string), "(( [%d] %s: %s ))", playerid, NameRP(playerid), params);
SendLocalMessage(playerid, COLOR_GREY, string);
return 1;
}
Nothing happens when I'm using the command
Re: ZCMD error? -
iHollyZinhO - 05.09.2018
Check if this variable is true when you use the command: LoggedIn[playerid].
PHP код:
CMD:b(playerid, params[])
{
if(!LoggedIn[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE : /b [Local OOC]");
new string[128];
format(string, sizeof(string), "(( [%d] %s: %s ))", playerid, NameRP(playerid), params);
SendLocalMessage(playerid, COLOR_GREY, string);
return 1;
}
Re: ZCMD error? -
KinderClans - 05.09.2018
@Op: You should return
0 on your player logged check, not 1.