[POMOC]/napustiorg

Započeo Richter, Novembar 06, 2010, 19:55:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

zz napravio sam komandu /napustiorg i sad mi dodu ovi errori





28102://-------------------------/Napustiorg------------------------------------------
28103: if(strcmp(cmd, "/napustiorg", true) == 0)
28104: {
28105:  PlayerInfo[playerid][pMember] = 0;
28106: PlayerInfo[playerid][pRank] = 0;
28107: PlayerInfo[playerid][pLeader] = 0;
28108: SetPlayerSkin(playerid, 10);
28109: SendClientMessage(playerid, COLOR_GREY, "Vise niste u nijednoj organizaciji/bandi !");
28110:    return 1;
28111: }



CitatC:\Documents and Settings\************\Desktop\************\gamemodes\gf.pwn(28103) : error 010: invalid function or declaration
C:\Documents and Settings\************\Desktop\************\gamemodes\gf.pwn(28110) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Poslednja Izmena: Novembar 06, 2010, 19:57:00 POSLE PODNE od [SA]Tiki_Miguli a.k.a BrEaK


Sigurno nije
Aequam memento rebus in arduis servare mentem.

Nije 100% a i da jeste ne svidja mi se komanda.... Stavi nesx ovako:

if(strcmp(cmd, "/napustio", true) == 0)
{
   if(IsPlayerConnected(playerid))
       {
  if(PlayerInfo[playerid][pMember] != 0)
  {
      GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
      SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Izasao si iz organizacije i sad si civil.");
      gTeam[playerid] = 3;
      PlayerInfo[playerid][pLeader] = 0;
      PlayerInfo[playerid][pTeam] = 3;
      PlayerInfo[playerid][pMember] = 0;
      PlayerInfo[playerid][pRank] = 0;
      PlayerInfo[playerid][pChar] = 0;
      PlayerInfo[playerid][pFMember] = 255;
      SpawnPlayer(playerid);
      new rand = random(sizeof(CIV));
      SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
      PlayerInfo[playerid][pModel] = CIV[rand];
      MedicBill[playerid] = 0;
      return 1;
      }
      else if(PlayerInfo[playerid][pMember] == 0)
      {
          SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ne mozes dati otkaz kad nisi u nikakoj organizaciji.");
          return 1;
          }
       }
}
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"