Problems
#7

Do you have any variable named x anywhere in the script? If so, change foreach(Player, x) to foreach(new xLoop : Player). Then, for every x that is inside of that loop, replace with xLoop.

pawn Код:
foreach( new xLoop : Player) {
    if( PaintType[ j ] == PaintType[ killerid ] ) {
        for( new i = 0; i < 5; i++ ) SendDeathMessageToPlayer( xLoop, 1001, 1001, 200 );
            SendPaintballMessage( PaintType[ xLoop ] - 1, COLOR_YELLOW, "* %s a castigat runda deoarece a omorat pe %s cu un cutit.", GetName( killerid ), GetName( playerid ) );
            SpawnPlayer( xLoop );
            PKills[ xLoop ] = 0; PDeaths[ xLoop ] = 0;
            PaintTime[ PaintType[ killerid ] - 1 ] = -2; PaintballWinner[ PaintType[ killerid ] - 1 ] = xLoop; PaintballWinnerScore[ PaintType[ killerid ] - 1 ] = 0;
    } else GiveSkillWeapon( killerid );
Reply


Messages In This Thread
Problems - by MariusAdv - 01.03.2018, 14:04
Re: Problems - by jasperschellekens - 01.03.2018, 14:15
Re: Problems - by MariusAdv - 01.03.2018, 14:17
Re: Problems - by jasperschellekens - 01.03.2018, 14:18
Re: Problems - by MariusAdv - 01.03.2018, 14:21
Re: Problems - by rolex - 01.03.2018, 14:27
Re: Problems - by GRiMMREAPER - 01.03.2018, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)