C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\RL-RL.pwn(389) : warning 203: symbol is never used: "b"
C:\Documents and Settings\GOD\Desktop\MY GM\gamemodes\RL-RL.pwn(389) : warning 203: symbol is never used: "l"
Pawn compiler 3.2.3664
I guess it was wrong reasoning from you.
You have made 3 variables like pawn Код:
|
new
a, b, c;
a = 1;
CMD:l(playerid, params[])
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/l)ow [close chat]");
new string[128];
format(string, sizeof(string), "%s says quietly: %s", GetPlayerNameEx(playerid), params);
ProxDetector(5.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
format(string, sizeof(string), "(quietly) %s", params);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);
if(PlayerInfo[playerid][pBugged] == 1)
{
format(string, sizeof(string), "(bug) %s says quietly: %s", GetPlayerNameEx(playerid), params);
SendBugMessage(2, COLOR_LIGHTGREEN, string);
}
return 1;
}
CMD:b(playerid, params[])
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]");
new string[128];
format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 1;
}
#include < a_samp >
#include < zcmd >
// ZCMD
CMD(b,1,cmdtext);
CMD(l,1,cmdtext);
I think that you're using a system like DCMD, then, go to the OnPlayerCommandText(there are some examples) and write something like:
pawn Код:
|
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
dcmd( b, 1, cmdtext );
return 0;
}
dcmd_b( playerid, params[ ] )
{
// Code
return 1;
}