Error

Započeo Aezakmi, Decembar 11, 2021, 17:21:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Uzeo sam da testam ovaj gm posto sam ga imao na kompu a nisam ga jos testao.
[pawn]C:\Users\Peki\Desktop\Server\gamemodes\ZadnjaVerzija.pwn(19381) : error 001: expected token: "-identifier-", but found "new"
C:\Users\Peki\Desktop\Server\gamemodes\ZadnjaVerzija.pwn(19382) : error 017: undefined symbol "playersip"
C:\Users\Peki\Desktop\Server\gamemodes\ZadnjaVerzija.pwn(19382) : error 017: undefined symbol "playersip"
C:\Users\Peki\Desktop\Server\gamemodes\ZadnjaVerzija.pwn(19382) : error 029: invalid expression, assumed zero
C:\Users\Peki\Desktop\Server\gamemodes\ZadnjaVerzija.pwn(19382) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.8           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
[/pawn]
Deo skripte:[pawn]       
        new playersip[ 128 ];
        GetPlayerIp(targetid,playersip, sizeof( playersip ));[/pawn]
Pawno Code: [Izaberi]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Pawno Code: [Izaberi]
Slika/video ingame problema(obavezno ako je ingame problem):
Poslednja Izmena: Decembar 11, 2021, 17:23:03 POSLE PODNE od ΛΣZΛKMI


Poslednja Izmena: Decembar 11, 2021, 18:02:00 POSLE PODNE od ΛΣZΛKMI

Daj jos linija oko toga gdje ti izbacuje errore

[pawn]ShowAktivnost( playerid, targetid )
{
    if( IsPlayerConnected( playerid ) && IsPlayerConnected( targetid ) )
   {
      new pol[ 7 ];
      if( PlayerInfo[ playerid ][ xPol ] == 1 ) pol = "musko";
      else if( PlayerInfo[ playerid ][ xPol ] == 2 ) pol = "zensko";

      new nxtlevel = PlayerInfo[ targetid ][ xLevel ]+1,
          expamount = nxtlevel*levelexp,
          warns = PlayerInfo[ targetid ] [xWarn ],
          level = PlayerInfo[ targetid ][ xLevel ],
         exp = PlayerInfo[ targetid ][ xRespekt ],

      new playersip[ 128 ];
        GetPlayerIp(targetid,playersip, sizeof( playersip ));

        new weapon[13],
            weapname[13][50],
         bullets[13];

      for( new slot = 0; slot < 13; slot++) {
           GetPlayerWeaponData( targetid, slot, weapon[ slot ], bullets[ slot ] );

            GetWeaponName( weapon[ slot ], weapname[ slot ], 50 );
      }


      SendClientMessage(playerid, 0x5BD3FFAA,"_________________________________________________");
      format( globalstring, sizeof( globalstring ),"*** %s ***", ImeIgraca( targetid ) );
      SendClientMessage(playerid, ATHLONE,globalstring);
      format( globalstring, sizeof( globalstring ), "Aktivnost igraca u staff timu: %d minuta", PlayerInfo[ targetid ][ xStaffMin ] );
      SendClientMessage( playerid, 0xF0F0F0FF, globalstring );
      SendClientMessage( playerid, 0xF0F0F0FF,globalstring );
      SendClientMessage( playerid, 0x5BD3FFAA,"_________________________________________________");
   }
}[/pawn]

[pawn]new nxtlevel = PlayerInfo[ targetid ][ xLevel ]+1,
          expamount = nxtlevel*levelexp,
          warns = PlayerInfo[ targetid ] [xWarn ],
          level = PlayerInfo[ targetid ][ xLevel ],
         exp = PlayerInfo[ targetid ][ xRespekt ];[/pawn]