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.
da
Sigurno nije
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;
}
}
}