warning while compile
#1

Код:
{
    // Get the name of the player that connected and display a join message to other players

    new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s has joined the server.", name);
    SendClientMessageToAll(0xC4C4C4FF, string);
    return 1;
}
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\pawno\BSRP.pwn(142) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\PC\Desktop\Dejanovi folderi\Black Shadow Roleplay\pawno\BSRP.pwn(148) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
HELP
Reply


Messages In This Thread
warning while compile - by Dejan12345 - 20.07.2016, 13:49
Re: warning while compile - by F1N4L - 20.07.2016, 13:52
Re: warning while compile - by Dejan12345 - 20.07.2016, 13:55
Re: warning while compile - by UltraScripter - 20.07.2016, 14:02
Re: warning while compile - by Dejan12345 - 20.07.2016, 14:09
Re: warning while compile - by UltraScripter - 20.07.2016, 14:16
Re: warning while compile - by Dejan12345 - 20.07.2016, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)