CMD:me(playerid, params[])
{
if(!LoggedIn[playerid]) return 1;
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USE:: /me [action]");
new string[128];
format(string, sizeof(string), "* %s %s", NameRP(playerid), params);
SendLocalMessage(playerid, COLOR_EMOTE, string);
return 1;
}
pawno\include\zcmd.inc(96) : warning 217: loose indentation
pawno\include\zcmd.inc(97) : warning 217: loose indentation
pawno\include\zcmd.inc(98) : warning 217: loose indentation
|
Seems to be a problem with your ZCMD include file, which version are you using?
Send that part of the include if you can, or update it. |
format(funcname, sizeof(funcname), "cmd_%s", funcname);
while (cmdtext[pos] == ' ') pos++;
if (!cmdtext[pos])
CMD:me(playerid, params[])
{
if(!LoggedIn[playerid]) return 1;
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USE:: /me [action]");
//-----------------------------------------------------------------------------------
new string[128];
format(string, sizeof(string), "* %s %s", NameRP(playerid), params);
SendLocalMessage(playerid, COLOR_EMOTE, string);
}
return 1;
}
|
PHP код:
|
format(funcname, sizeof(funcname), "cmd_%s", funcname);
while (cmdtext[pos] == ' ') pos++;
if (!cmdtext[pos])
format(funcname, sizeof(funcname), "cmd_%s", funcname);
while (cmdtext[pos] == ' ') pos++;
if (!cmdtext[pos])
|
Put it like this
Код:
format(funcname, sizeof(funcname), "cmd_%s", funcname);
while (cmdtext[pos] == ' ') pos++;
if (!cmdtext[pos])
Код:
format(funcname, sizeof(funcname), "cmd_%s", funcname);
while (cmdtext[pos] == ' ') pos++;
if (!cmdtext[pos])
|
CMD:me(playerid, params[])
{
if(!LoggedIn[playerid])
{
return SendClientMessage(playerid, -1, "You must be logged in to use this command");
}
if(isnull(params))
{
return SendClientMessage(playerid, COLOR_RED, "USE:: /me [action]");
}
else
{
new string[128];
format(string, sizeof(string), "* %s %s", NameRP(playerid), params);
SendLocalMessage(playerid, COLOR_EMOTE, string);
}
return 1;
}