Sistem orga by Shomy

Započeo Fqris, Jun 13, 2019, 19:58:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning):
[pawn]
(9664) : error 028: invalid subscript (not an array or too many subscripts): "pLider"
(9664) : warning 215: expression has no effect
(9664) : error 001: expected token: ";", but found "]"
(9664) : error 029: invalid expression, assumed zero
(9664) : fatal error 107: too many error messages on one line[/pawn]
Deo skripte: [pawn]
if( strcmp( ImeIgraca(id), OrgInfo[ pLider[ playerid ]] [ orgLider1 ], true ) == 0) // Linija 9664
   {
      strmid( OrgInfo[ pLider[ playerid ] ][ orgLider1 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME);
      OrgInfo[ pLider[ playerid ]] [ orgLiderSlot1 ] = false;
   }[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU

[pawn]OrgInfo[ pLider[ playerid ] ][ orgLiderSlot1 ] = false;[/pawn]

Citat: Terzic poslato Jun 13, 2019, 20:04:29 POSLE PODNE
[pawn]OrgInfo[ pLider[ playerid ] ][ orgLiderSlot1 ] = false;[/pawn]
Isto ?

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU

[pawn]
if(strcmp(ImeIgraca(id), OrgInfo[pLider[playerid]][orgLider1], true) == 0)
{
    strmid(OrgInfo[pLider[playerid]][orgLider1], "Niko", 0, strlen("Niko"), MAX_PLAYER_NAME);
    OrgInfo[pLider[playerid]][orgLiderSlot1] = false;
}
[/pawn]

Citat: Terzic poslato Jun 13, 2019, 20:25:52 POSLE PODNE
[pawn]
if(strcmp(ImeIgraca(id), OrgInfo[pLider[playerid]][orgLider1], true) == 0)
{
    strmid(OrgInfo[pLider[playerid]][orgLider1], "Niko", 0, strlen("Niko"), MAX_PLAYER_NAME);
    OrgInfo[pLider[playerid]][orgLiderSlot1] = false;
}
[/pawn]
brt, o5 isti errori :'3

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU

[pawn]
if( strcmp( ImeIgraca(id), OrgInfo[ pLider[ playerid ] ][ orgLider1 ], true ) == 0)[/pawn]
Nzm da li je do ovoga, ali probaj

Facebook - Klik



Citat: ShomyJedinka poslato Jun 13, 2019, 20:45:34 POSLE PODNE
[pawn]
if( strcmp( ImeIgraca(id), OrgInfo[ pLider[ playerid ] ][ orgLider1 ], true ) == 0)[/pawn]
Nzm da li je do ovoga, ali probaj
aa brttt, ponovo isto

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU


Evo citava cmd :)

[pawn]CMD:makeleader(playerid, params[]) {



   if(!IsPlayerAdmin(playerid)) return SCM(playerid, -1, "Niste ovlasceni.");
   new id, oid, str[ 256 ], pname[ MAX_PLAYER_NAME ], pname1[ MAX_PLAYER_NAME ], oFile[ 60 ];
   if(sscanf(params, "ud", id, oid)) return SCM(playerid, -1, "/makeleader [ID] [ORG ID]");
   format(oFile, sizeof(oFile), ORG_FILE, oid);
   if(!fexist(oFile) && oid != 0) return SCM(playerid, -1, "ID te organizacije ne postoji.");
   GetPlayerName(playerid, pname, sizeof(pname));
   GetPlayerName(id, pname1, sizeof(pname1));
   if(oid == 0) {
      format(str, sizeof(str), "Admin %s Vam je skinuo lidera.", pname);
      SCM(id, -1, str);
      format(str, sizeof(str), "Skinuli ste igracu %s lidera.", pname1);
      SCM(playerid, -1, str);
      SetPlayerSkin(id, 1);
      
   if( strcmp( ImeIgraca(id), OrgInfo[ pLider[ playerid ] ][ orgLider1 ], true ) == 0)
   {
       strmid(OrgInfo[pLider[playerid]][orgLider1], "Niko", 0, strlen("Niko"), MAX_PLAYER_NAME);
       OrgInfo[pLider[playerid]][orgLiderSlot1] = false;
   }

      if( strcmp( ImeIgraca(id), OrgInfo[ pLider[ playerid ] ][ orgLider2 ], true ) == 0) { strmid( OrgInfo[ pLider[ playerid ] ][ orgLider2 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME ); OrgInfo[ pLider[ playerid ] ][ orgLiderSlot2 ] = false; }
      format( str, sizeof( str ),""col_srvboja"~ "col_white"%s"col_srvboja" ~\n "col_white"ID: "col_srvboja"%d \n  "col_white"Br.Clanova:"col_srvboja" %d\n"col_white"Lider 1: "col_srvboja"%s\n"col_white"Lider 2: "col_srvboja"%s\n{FFFFFF}Za ulaz pritisnite - "col_srvboja"ENTER", OrgInfo[ pLider[ playerid ] ][ orgIme ],pLider[ playerid ],OrgInfo[ pLider[ playerid ] ][ orgClanovi ],OrgInfo[ pLider[ playerid ] ][ orgLider1 ],OrgInfo[ pLider[ playerid ] ][ orgLider2 ] );
      Update3DTextLabelText(OrgLabel[ pLider[ playerid ] ], OrgInfo[ pLider[ playerid ] ][ orgBoja ], str);
      SaveOrg(pLider[ id ]);
      pClan[ id ] = 0;
      pLider[ id ] = 0;
   }
   else {
       if( !strcmp( OrgInfo[ oid ][ orgLider1 ], "Niko", true ) ) { strmid( OrgInfo[ oid ][ orgLider1 ], ImeIgraca( id ), 0, strlen( ImeIgraca( id ) ), MAX_PLAYER_NAME  ); }
      else if( !strcmp( OrgInfo[ oid ][ orgLider2 ], "Niko", true ) ) { strmid( OrgInfo[ oid ][ orgLider2 ], ImeIgraca( id ), 0, strlen( ImeIgraca( id ) ), MAX_PLAYER_NAME  ); }
      else return SendClientMessage( playerid, -1, "Ova organizacija vec ima 2 lidera." );
      if(pLider[ id ] != 0) return SCM(playerid, -1, "Taj igrac je vec lider.");
      format(str, sizeof(str), "Admin %s Vam dao lidera organizacije %s.", pname, OrgInfo[ oid ][ orgIme ]);
      SCM(id, -1, str);
      format(str, sizeof(str), "Dali ste lidera igracu %s.", pname1);
      SCM(playerid, -1, str);
      pLider[ id ] = oid;
      if(!OrgInfo[ oid ][ orgLiderSlot1 ]) { if( !strcmp( OrgInfo[ oid ][ orgLider1 ], "Niko", true ) ) { strmid( OrgInfo[ oid ][ orgLider1 ], ImeIgraca( playerid ), 0, strlen( ImeIgraca( playerid ) ), MAX_PLAYER_NAME  ); OrgInfo[ oid ][ orgLiderSlot1 ] = true; } }
      else if(OrgInfo[ oid ][ orgLiderSlot1 ] && !OrgInfo[ oid ][ orgLiderSlot2 ]) { if( !strcmp( OrgInfo[ oid ][ orgLider2 ], "Niko", true ) ) { strmid( OrgInfo[ oid ][ orgLider2 ], ImeIgraca( playerid ), 0, strlen( ImeIgraca( playerid ) ), MAX_PLAYER_NAME  ); OrgInfo[ oid ][ orgLiderSlot2 ] = true; } }
      format( str, sizeof( str ),""col_srvboja"~ "col_white"%s"col_srvboja" ~\n "col_white"ID: "col_srvboja"%d \n  "col_white"Br.Clanova:"col_srvboja" %d\n"col_white"Lider 1: "col_srvboja"%s\n"col_white"Lider 2: "col_srvboja"%s\n{FFFFFF}Za ulaz pritisnite - "col_srvboja"ENTER", OrgInfo[ oid ][ orgIme ],oid,OrgInfo[ oid ][ orgClanovi ],OrgInfo[ oid ][ orgLider1 ],OrgInfo[ oid ][ orgLider2 ] );
      Update3DTextLabelText(OrgLabel[ oid ], OrgInfo[ oid ][ orgBoja ], str);
      if(!OrgInfo[ oid ][ orgDrzavna ]) { if(!pZensko[ playerid ]) { SetPlayerSkin(playerid, OrgInfo[ oid ][ orgSkin5 ]); } else { SetPlayerSkin(playerid, OrgInfo[ oid ][ orgZSkin5 ]); } }
      SaveOrg(oid);
      pRank[ id ] = 5;
      pClan[ id ] = oid;
   }
   return 1;
}
[/pawn]

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU


Citat: 002 poslato Jun 14, 2019, 01:05:47 PRE PODNE
Do kreatora je.
@ShomyJedinka  Ajde popravi ga majstore :D 8)

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU

[pawn]if(strcmp(ImeIgraca(id), OrgInfo [pLider [playerid]] [orgLider1], true) == 0) // Linija 9664
   {
      strmid( OrgInfo [pLider [playerid]] [orgLider1], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME);
      OrgInfo [pLider [playerid]] [orgLiderSlot1] = false;
   }[/pawn]
Ja mislim da bi trebalo ovako, ako ti je sve ostalo uredu.
Poslednja Izmena: Jun 14, 2019, 07:02:13 PRE PODNE od Acika04
Vlasnik i Scripter na : ;D

Citat: 002 poslato Jun 14, 2019, 01:05:47 PRE PODNE
Do kreatora je.
Bez vredjanja!  :D
Ne bih objavio da ima error...
Aj javi mi se dns za anydesk

Facebook - Klik



Citat: Acika04 poslato Jun 14, 2019, 07:00:43 PRE PODNE
[pawn]if(strcmp(ImeIgraca(id), OrgInfo [pLider [playerid]] [orgLider1], true) == 0) // Linija 9664
   {
      strmid( OrgInfo [pLider [playerid]] [orgLider1], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME);
      OrgInfo [pLider [playerid]] [orgLiderSlot1] = false;
   }[/pawn]
Ja mislim da bi trebalo ovako, ako ti je sve ostalo uredu.
a o5...
@ShomyJedinka ajde na fb javio sam se, www.facebook.com/far3exe

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU