01.03.2018, 14:31
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 );