Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: doktor poslato April 22, 2012, 16:44:01 POSLE PODNE

Naslov: [Pomoc]Warinzi
Poruka od: doktor poslato April 22, 2012, 16:44:01 POSLE PODNE
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):
Naslov: Odg: [Pomoc]Warinzi
Poruka od: Mexo poslato April 22, 2012, 16:47:50 POSLE PODNE
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;
}
Naslov: Odg: [Pomoc]Warinzi
Poruka od: doktor poslato April 22, 2012, 17:07:45 POSLE PODNE
moze lock!