Jump to content
  • 0

eroare compilare


Gabster4Ever

Question

/*
[FS] By HsY
*/


#include <a_samp>

#define COLOR_ORANGE 0xFF9900AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x2641FEAA
#define FILTERSCRIPT
forward GateClose();
new bartataglia;
new poarta;
public OnFilterScriptInit()
{
    poarta = CreateObject(975, 1529.6015625, -1685.9583740234, 14.057502746582, 0, 0, 0);
    bartataglia = CreateObject(988, 902.79235839844, -946.18060302734, 39.499565124512, 0, 0, 6);

   return 1;
}

public OnFilterScriptExit()
{
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/poartals", true)==0)
    {
        MoveObject(poarta, 1539.8341064453, -1686.0211181641, 14.224103927612, 2);
        SetTimer("GateClose", 8000, 0);
        SendClientMessage(playerid, COLOR_BLUE,"Ai deschis poarta,in 8 secunde poarta se va inchide");
        GivePlayerMoney(playerid,0);
        return 1;
    }

    if (strcmp(cmdtext, "/bartataglia", true)==0)
    {
        MoveObject(bartataglia, 902.78308105469, -946.18634033203, 34.884086608887, 3);
        SetTimer("GateClose", 10000, 0);
        SendClientMessage(playerid, COLOR_ORANGE,"Ai deschis poarta spre bar");
        GivePlayerMoney(playerid,0);
        return 1;}
}


public GateClose()
{
    MoveObject (poarta,1529.6015625, -1685.9583740234, 14.057502746582, 2);
    MoveObject (bartataglia,902.79235839844, -946.18060302734, 39.499565124512, 3);

    return 1;
}

D:\desk\xTEam\filterscripts\poarta.pwn(46) : warning 209: function "OnPlayerCommandText" should return a value

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

ma scuzi era altu asta e

/*
[FS] By HsY
*/


#include <a_samp>

#define COLOR_ORANGE 0xFF9900AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE 0x2641FEAA
#define FILTERSCRIPT
forward GateClose();
new bartataglia;
new poarta;
public OnFilterScriptInit()
{
    poarta = CreateObject(975, 1529.6015625, -1685.9583740234, 14.057502746582, 0, 0, 0);
    bartataglia = CreateObject(988, 902.79235839844, -946.18060302734, 39.499565124512, 0, 0, 6);

	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/poartals", true)==0)
    {
        MoveObject(poarta, 1539.8341064453, -1686.0211181641, 14.224103927612, 2);
        SetTimer("GateClose", 8000, 0);
        SendClientMessage(playerid, COLOR_BLUE,"Ai deschis poarta,in 8 secunde poarta se va inchide");
        GivePlayerMoney(playerid,0);
        return 1;
    }

    if (strcmp(cmdtext, "/bartataglia", true)==0)
    {
        MoveObject(bartataglia, 902.78308105469, -946.18634033203, 34.884086608887, 3);
        SetTimer("GateClose", 10000, 0);
        SendClientMessage(playerid, COLOR_ORANGE,"Ai deschis poarta spre bar");
        GivePlayerMoney(playerid,0);
        return 1;
}
return 0;
}


public GateClose()
{
    MoveObject (poarta,1529.6015625, -1685.9583740234, 14.057502746582, 2);
    MoveObject (bartataglia,902.79235839844, -946.18060302734, 39.499565124512, 3);

    return 1;
}

incearca cum ti-am scris eu;)

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

partea cu siglele incearca cu SetPlayerMapIcon(...)

http://wiki.sa-mp.com/wiki/SetPlayerMapIcon

pune icone pe mapa astfel inkat playerul sa stie unde sunt locatile ..etc...

iar la cealalt parte stai un pic sa-mi amintesc 

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.