Započeo Richter
•6. Nov. 2010.[POMOC]/napustiorg
768
pregleda
4
postova
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
232
Postovi:
63
Teme:
Pridružio se:Jan. 2010
6. Nov. 2010.
zz napravio sam komandu /napustiorg i sad mi dodu ovi errori
28102://-------------------------/Napustiorg------------------------------------------
28103: if(strcmp(cmd, "/napustiorg", true) == 0)
28104: {
28105: PlayerInfo = 0;
28106: PlayerInfo = 0;
28107: PlayerInfo = 0;
28108: SetPlayerSkin(playerid, 10);
28109: SendClientMessage(playerid, COLOR_GREY, "Vise niste u nijednoj organizaciji/bandi !");
28110: return 1;
28111: }Quote
C:\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.
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.
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
579
Postovi:
99
Teme:
Pridružio se:Sep. 2010
6. Nov. 2010.
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 != 0)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Izasao si iz organizacije i sad si civil.");
gTeam = 3;
PlayerInfo = 0;
PlayerInfo = 3;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 255;
SpawnPlayer(playerid);
new rand = random(sizeof(CIV));
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
MedicBill = 0;
return 1;
}
else if(PlayerInfo == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ne mozes dati otkaz kad nisi u nikakoj organizaciji.");
return 1;
}
}
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava