#1

Код:
    if (playerData[playerid][isInEvent])
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    new eliminated[100];
    format(eliminated, sizeof(eliminated), "{FAAC58}%s(%i) {FFFFFF}was eliminated from the event.", playerData[i][playerNamee], i);
    SendClientMessage(p, COLOR_WHITE, eliminated);
    SpawnPlayer(playerid);
    }
	return 0;
}
Код:
C:\Users\\Desktop\BLCNR\gamemodes\blcnr.pwn(1710) : error 003: declaration of a local variable must appear in a compound block
C:\Users\\Desktop\BLCNR\gamemodes\blcnr.pwn(1710) : error 017: undefined symbol "eliminated"
C:\Users\\Desktop\BLCNR\gamemodes\blcnr.pwn(1710) : warning 215: expression has no effect
C:\Users\\Desktop\BLCNR\gamemodes\blcnr.pwn(1710) : error 001: expected token: ";", but found "]"
C:\Users\\Desktop\BLCNR\gamemodes\blcnr.pwn(1710) : fatal error 107: too many error messages on one line
Reply
#2

You're missing a couple of braces.

PHP код:
for(new 0MAX_PLAYERSi++)
{
    
// stuff

Reply
#3

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    playerData[playerid][hasSpawned] = false;
	playerData[playerid][ctpImmune] = true;
	playerData[playerid][abImmune] = true;
    
    // Easter
    PlayerTextDrawHide(playerid, playerData[playerid][Eggs][0]);
    PlayerTextDrawHide(playerid, playerData[playerid][Eggs][1]);
    PlayerTextDrawHide(playerid, playerData[playerid][Eggs][2]);
    {
    if (playerData[playerid][isInEvent])
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    for (new p=0; p<MAX_PLAYERS; p++)
	{
    new eliminated[100];
    format(eliminated, sizeof(eliminated), "{FAAC58}%s(%i) {FFFFFF}was eliminated from the event.", playerData[i][playerNamee], i);
    SendClientMessage(p, COLOR_WHITE, eliminated);
    SpawnPlayer(playerid);
    }
    }
    }
	return 0;
}

    
    if (playerData[playerid][isInDM]) //Heres the Line 1724
    {
Код:
C:\Users\\Desktop\BLCNR\gamemodes\blcnr.pwn(1724) : warning 225: unreachable code
Reply
#4

Quote:
Originally Posted by whatreally
Посмотреть сообщение
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    playerData[playerid][hasSpawned] = false;
	playerData[playerid][ctpImmune] = true;
	playerData[playerid][abImmune] = true;
    
    // Easter
    PlayerTextDrawHide(playerid, playerData[playerid][Eggs][0]);
    PlayerTextDrawHide(playerid, playerData[playerid][Eggs][1]);
    PlayerTextDrawHide(playerid, playerData[playerid][Eggs][2]);
    {
    if (playerData[playerid][isInEvent])
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    for (new p=0; p<MAX_PLAYERS; p++)
	{
    new eliminated[100];
    format(eliminated, sizeof(eliminated), "{FAAC58}%s(%i) {FFFFFF}was eliminated from the event.", playerData[i][playerNamee], i);
    SendClientMessage(p, COLOR_WHITE, eliminated);
    SpawnPlayer(playerid);
    }
    }
    }
	return 0;
}

    
    if (playerData[playerid][isInDM]) //Heres the Line 1724
    {
Код:
C:\Users\\Desktop\BLCNR\gamemodes\blcnr.pwn(1724) : warning 225: unreachable code
where the 225 line ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)