[Pomoc]Warinzi

Započeo Obrisan korisnik
22. Apr. 2012. Zaključano
287
pregleda
3
postova
Deleted User
Obrisan korisnik
22. Apr. 2012.
Skripta koju koristim:NX
Detaljan opis problema:Izbacuje mi ove warnige
warning 209: function "cmd_quitfaction" should return a value
warning 216: nested comment


komanda :
COMMAND:quitfaction(playerid, params[])
{
if (PlayerInfo < 50)
{
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napustili ste organizaciju i sada ste civil.");
                PlayerInfo = 50;
                PlayerInfo = 0;
                gTeam = 3;
PlayerInfo = 3;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
                SpawnPlayer(playerid);
                SendClientMessage(playerid, COLOR_YELLOW, "Zbog nepostivanja ugovora dobili ste kaznu od 50 sati bez mogucnosti ulaska u bandu/org.");
      return 1;
        }
        if (PlayerInfo > 50)
{
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napustili ste organizaciju i sada ste civil.");
                PlayerInfo = 0;
                gTeam = 3;
PlayerInfo = 3;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
                SpawnPlayer(playerid);
        return 1;
}
}

Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
MEXO
4
Made Man
22. Apr. 2012.
Probaj ovako
COMMAND:quitfaction(playerid, params[])
{
if (PlayerInfo < 50)
{
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napustili ste organizaciju i sada ste civil.");
                PlayerInfo = 50;
                PlayerInfo = 0;
                gTeam = 3;
PlayerInfo = 3;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
                SpawnPlayer(playerid);
                SendClientMessage(playerid, COLOR_YELLOW, "Zbog nepostivanja ugovora dobili ste kaznu od 50 sati bez mogucnosti ulaska u bandu/org.");
      return 1;
        }
        if (PlayerInfo > 50)
{
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napustili ste organizaciju i sada ste civil.");
                PlayerInfo = 0;
                gTeam = 3;
PlayerInfo = 3;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
                SpawnPlayer(playerid);
        return 1;
}
return 1;
}
Deleted User
Obrisan korisnik
22. Apr. 2012.
moze lock!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha