Help please
#1

pawn Код:
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
Please help me with these errors
Cheers Blade !
Reply
#2

That is because you have declared the "b" and "l" variables without ever assigning a value to them.
Reply
#3

You're declaring variables that dont are used. Remove these declarations or make use of them.

Quote:
Originally Posted by Dwane
Посмотреть сообщение
I guess it was wrong reasoning from you.
You have made 3 variables like
pawn Код:
new
    a, b, c;

a = 1;
But you never use b and c ( only a ), so you get this warning.
I messed up the subject.
Reply
#4

You have made 3 variables like
pawn Код:
new
    a, b, c;

a = 1;
But you never use b and c ( only a ), so you get this warning.

Edit: Yep
Reply
#5

How can i make use of them D:
Well the code
pawn Код:
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;
}
Help please
Reply
#6

Do you have it?
pawn Код:
#include < a_samp >
#include < zcmd >
// ZCMD
And make sure you don't use it inside any callback.
Reply
#7

I think that you're using a system like DCMD, then, go to the OnPlayerCommandText(there are some examples) and write something like:

pawn Код:
CMD(b,1,cmdtext);
CMD(l,1,cmdtext);
Reply
#8

I am using ZCMD and ofc i got
#include <zcmd>
Reply
#9

Quote:
Originally Posted by CyNiC
Посмотреть сообщение
I think that you're using a system like DCMD, then, go to the OnPlayerCommandText(there are some examples) and write something like:

pawn Код:
CMD(b,1,cmdtext);
CMD(l,1,cmdtext);
On Dcmd is like that
pawn Код:
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
    dcmd( b, 1, cmdtext );
    return 0;
}
 
dcmd_b( playerid, params[ ] )
{
    // Code
    return 1;
}
However, use one of them. Choose Dcmd OR ZCMD, you can't use them both.
Reply
#10

Quick reminder, if you use ZCMD you can't use strcmp commands in "OnPlayerCommandText". You have to put it under a new callback, which you can find inside the ZCMD include.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)