Warnings!! Please help
#1

pawn Код:
COMMAND:music(playerid, params[])
{
    new string[128],sendername[MAX_PLAYER_NAME];
    if(GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this.");
    if(sscanf(params, "s[256]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /music [url]");
    if(!strcmp(params, "stop", true, 4))
    {
        StopAudioStreamForPlayer(playerid);
        SendClientMessage(playerid, COLOR_GREEN, " You have stopped the live music.");
        return 1;
    }
    if(GetPVarInt(playerid, "Admin") >= 3)
    format(sendername, sizeof(sendername), "%s", PlayerNameEx(playerid));
    GiveNameSpace(sendername);
    format(string, sizeof(string), "%s has started playing a live song. ('/music stop' to stop listening)", sendername);
    SendClientMessageToAll(COLOR_LIGHTRED, string);
    foreach(Player, i)
    {
        PlayAudioStreamForPlayer(i, params);
    }
    return 1;
}
This is making me 2 warnings..
I dont know how to fix it please help me.

warning 204: symbol is assigned a value that is never used: "sendername"
warning 204: symbol is assigned a value that is never used: "string"
Reply


Messages In This Thread
Warnings!! Please help - by wakeuptomer - 19.02.2014, 12:33
Re: Warnings!! Please help - by amirab - 19.02.2014, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)