[POMOC] Firme

Započeo jura8308, Jun 30, 2013, 19:55:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta: LARP edit
Problem: Kad kupim malu firmu (sbizz) sve radi kako treba i to, al kad restart servera naravim pise mi da ne posjedujem firmu... a ove normalne firme (Bizz) rade sve kako treba.....
Dio skripte:

   if(strcmp(cmd, "/firma", true) == 0)
   {

         new x_job[128];

      GetPlayerName(playerid,playername,sizeof(playername));
         x_job = strtok(cmdtext, idx);
      if(PlayerInfo[playerid][pPbiskey] == 255 && PlayerInfo[playerid][pPsbiskey] == 255)
      {
         SendClientMessage(playerid, COLOR_GREY, "Ne posjedujes firmu!");
         return 1;
      }
      if(!strlen(x_job) && PlayerInfo[playerid][pPbiskey] != 255 && strcmp(playername, Businesses[PlayerInfo[playerid][pPbiskey]][bOwner1], true) == 0)
      {
      format( string, sizeof( string ), "_______________%s______________", Businesses[PlayerInfo[playerid][pPbiskey]][bName]);
      SendClientMessage( playerid, 0x399CCEFF, string);
      SendClientMessage(playerid, 0x7EBEDFFF,"KORISTENJE: /firma [ime]");
      SendClientMessage(playerid, 0xA4D1E8FF,"Dostupno: informacije, ostavi, izvadi, preuredi");
      SendClientMessage(playerid, 0xBCDDEEFF,"Dostupno: naruci, otvori, zatvori, roba");
      SendClientMessage(playerid, 0xBCDDEEFF,"_____________________________");
      SendClientMessage(playerid, 0xD1E7F3FF,"Ako hoces da promijenis ime firme koristi: /imefirme [tekst]");
      SendClientMessage(playerid, 0xDBECF5FF,"Ako hoces da prodas firmu koristi /firma prodaj");
         return 1;
      }
      if(!strlen(x_job) && PlayerInfo[playerid][pPsbiskey] != 255 &&  strcmp(playername, SBusinesses[PlayerInfo[playerid][pPsbiskey]][sbOwner1], true) == 0)
      {
      format( string, sizeof( string ), "_______________%s______________", SBusinesses[PlayerInfo[playerid][pPsbiskey]][sbName]);
      SendClientMessage( playerid, 0x399CCEFF, string);
      SendClientMessage(playerid, 0x7EBEDFFF,"KORISTENJE: /firma [ime]");
      SendClientMessage(playerid, 0xA4D1E8FF,"Dostupno: informacije, ostavi, izvadi, preuredi");
      SendClientMessage(playerid, 0xBCDDEEFF,"Dostupno: naruci, otvori, zatvori, roba");
      SendClientMessage(playerid, 0xBCDDEEFF,"_____________________________");
      SendClientMessage(playerid, 0xD1E7F3FF,"Ako hoces da promijenis ime firme koristi: /imefirme [tekst]");
      SendClientMessage(playerid, 0xDBECF5FF,"Ako hoces da prodas firmu koristi /firma prodaj");
         return 1;
      }