Skripta koju koristim:NX
[b]Detaljan opis problema[/b]:Izbacuje mi ove warnige
warning 209: function "cmd_quitfaction" should return a value
warning 216: nested comment
komanda :
COMMAND:quitfaction(playerid, params[])
{
if (PlayerInfo[playerid][pTimUgovor] < 50)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napustili ste organizaciju i sada ste civil.");
PlayerInfo[playerid][pKaznaUgovor] = 50;
PlayerInfo[playerid][pTimUgovor] = 0;
gTeam[playerid] = 3;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pRank] = 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[playerid][pTimUgovor] > 50)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napustili ste organizaciju i sada ste civil.");
PlayerInfo[playerid][pTimUgovor] = 0;
gTeam[playerid] = 3;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pRank] = 0;
SpawnPlayer(playerid);
return 1;
}
}
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Probaj ovako
COMMAND:quitfaction(playerid, params[])
{
if (PlayerInfo[playerid][pTimUgovor] < 50)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napustili ste organizaciju i sada ste civil.");
PlayerInfo[playerid][pKaznaUgovor] = 50;
PlayerInfo[playerid][pTimUgovor] = 0;
gTeam[playerid] = 3;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pRank] = 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[playerid][pTimUgovor] > 50)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Napustili ste organizaciju i sada ste civil.");
PlayerInfo[playerid][pTimUgovor] = 0;
gTeam[playerid] = 3;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pRank] = 0;
SpawnPlayer(playerid);
return 1;
}
return 1;
}
moze lock!