Compile 2 FS
#1

Hey
i wanna
Compile this :
Quote:

#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;

public OnFilterScriptInit()
{
p1 = CreatePickup(1318, 1, -1999.9729,80.0172,27.6799);// model,type,z,x,y
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
if(pickupid == p1)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 10LT/Min Paskirtis: Pjauti юole");
}
return 1;
}


And this
Quote:

#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p2;

public OnFilterScriptInit()
{
p2 = CreatePickup(1318, 1, -2326.9583,-140.2599,35.5547);// model,type,z,x,y
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
if(pickupid == p2)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 12LT/Min Paskirtis: Iрveюioti picas");
}
return 1;
}

To one
Reply
#2

Please use pawn tags to paste a code:
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;
new p2;

public OnFilterScriptInit()
{
p1 = CreatePickup(1318, 1, -1999.9729,80.0172,27.6799);// model,type,z,x,y
p2 = CreatePickup(1318, 1, -2326.9583,-140.2599,35.5547);// model,type,z,x,y
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
if(pickupid == p1)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 10LT/Min Paskirtis: Pjauti юole");
}
if(pickupid == p2)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 12LT/Min Paskirtis: Iрveюioti picas");
}
return 1;
}
Reply
#3

Just add the information inside the callbacks together (not the returns). So here is how it would look:
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;
new p2;
//Or we could do new p1, p2;

public OnFilterScriptInit()
{
    p1 = CreatePickup(1318, 1, -1999.9729,80.0172,27.6799);// model,type,z,x,y
    p2 = CreatePickup(1318, 1, -2326.9583,-140.2599,35.5547);// model,type,z,x,y
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
    if(pickupid == p1)//this to make sure that the pickup we want is marker
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 10LT/Min Paskirtis: Pjauti юole");
    }
    if(pickupid == p2)//this to make sure that the pickup we want is marker
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 12LT/Min Paskirtis: Iрveюioti picas");
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
Please use pawn tags to paste a code:
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;
new p2;

public OnFilterScriptInit()
{
p1 = CreatePickup(1318, 1, -1999.9729,80.0172,27.6799);// model,type,z,x,y
p2 = CreatePickup(1318, 1, -2326.9583,-140.2599,35.5547);// model,type,z,x,y
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)//pickup related function
{
if(pickupid == p1)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 10LT/Min Paskirtis: Pjauti юole");
}
if(pickupid == p2)//this to make sure that the pickup we want is marker
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Informacija Uюdarbis 12LT/Min Paskirtis: Iрveюioti picas");
}
return 1;
}
Ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)