Help Me
#1

Код:
C:\Users\munawar khan\Downloads\Desktop\Rolen Role Play full server\gamemodes\RadioALL.pwn(25) : warning 203: symbol is never used: "playall"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#2

Delete the line in your script that looks something like this:

pawn Код:
new playall;
Reply
#3

can you fix
Код:
// Admin Music Stream by EvanA(Evan Abagail)
// Version 1.0
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT
#define zcmd
#define pAdmin

CMD:playall(playerid, params[])
{
    foreach(Player, i)
    {
                if (PlayerInfo[playerid][pAdmin] >= 999999)
                {
                    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /playall [Link]");
                    PlayAudioStreamForPlayer(i, params);
        }
        }
    return 1;
}

#endif
Reply
#4

Just to let you know that if you get "undefined symbol" error, the solution is not: #define symbol_here
It's totally wrong. Other thing is that you paste things from other scripts and expect it to compile without defining those symbol.

Let's start with the warning. It says that symbol "playall" is never used so include zcmd include so it will be a defined symbol. You will also need to include foreach so you can use foreach for looping through the connected (only) players.

SendClientMessageEx is not defined either so just use the original function: SendClientMessage

The loop isn't in the correct place.

Last, the array about the admin level. Even if you use it, you won't be able to use the command as long as you don't set the level to 1 million or higher. So switch to Rcon admin.

Combining all the above will result as:
pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <foreach>
#include <zcmd>

CMD:playall(playerid, params[])
{
    if (!IsPlayerAdmin(playerid)) return 1;
    if (isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /playall [Link]");
    foreach(Player, i) PlayAudioStreamForPlayer(i, params);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)