Jump to content

Nelamurire harta


ardeiasul

Recommended Posts

Salut am pus harta intr-un filescript

Harta are niste modificari la o cladire am sters o cladire si am pus alt ceva in locul ala

Cand intru pe server tot asa apare cladirea nu apare ce am pus eu

<a href="http://socialbirth.com/?ref=3186" target="_blank"><img src="http://socialbirth.com/img/250x250_socialbirth_boost_reputation.png" alt="Social Media Advertising Network - SocialBirth" border="0

Link to comment
Share on other sites

Asta e FS cu mapa

[pawn]#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()

RemoveBuildingForPlayer(playerid, 4051, 1371.8203, -1754.8203, 19.0469, 0.25);

RemoveBuildingForPlayer(playerid, 4021, 1371.8203, -1754.8203, 19.0469, 0.25);

CreateObject(1337, 1380.49512, -1788.32031, 13.04688, 0, 0, 0);

CreateObject(17065, 1372.80005, -1756, 16.9, 0, 0, 90);

CreateObject(1676, 1377.69995, -1762.19995, 14.6, 0, 0, 90);

CreateObject(1676, 1377.5, -1750.19995, 14.7, 0, 0, 90);

CreateObject(1676, 1370, -1750.19995, 14.4, 0, 0, 90);

CreateObject(1676, 1370, -1762.19995, 14.5, 0, 0, 90);

#endif[/pawn]

<a href="http://socialbirth.com/?ref=3186" target="_blank"><img src="http://socialbirth.com/img/250x250_socialbirth_boost_reputation.png" alt="Social Media Advertising Network - SocialBirth" border="0

Link to comment
Share on other sites

Doamne, mai mare tampenie n-am vazut in viata mea.Incearca asta:

[pawn]#include    " a_samp "

#if defined FILTERSCRIPT

#undef MAX_PLAYERS

#define MAX_PLAYERS 60 // Schimba aici cu numarul de jucatori de pe server-ul tau.

public OnFilterScriptInit ( )

{

    CreateObject ( 1337  , 1380.49512 , -1788.32031 , 13.04688 , 0 , 0 , 0  ) ;

    CreateObject ( 17065  , 1372.80005 , -1756      , 16.9    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1377.69995 , -1762.19995 , 14.6    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1377.5    , -1750.19995 , 14.7    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1370      , -1750.19995 , 14.4    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1370      , -1762.19995 , 14.5    , 0 , 0 , 90 ) ;

    return ( 1 ) ;

}

public OnPlayerConnect ( playerid )

{

    RemoveBuildingForPlayer ( playerid , 4051 , 1371.8203 , -1754.8203 , 19.0469 , 0.25 ) ;

    RemoveBuildingForPlayer ( playerid , 4021 , 1371.8203 , -1754.8203 , 19.0469 , 0.25 ) ;

    return ( 1 ) ;

}[/pawn]

Link to comment
Share on other sites

Le-am pus in gamemode si imi da eroarea [pawn]D:\downloads\server\gamemodes\Rp.pwn(3286) : warning 225: unreachable code

D:\downloads\server\gamemodes\Rp.pwn(11153) : warning 225: unreachable code

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:          12008 bytes

Code size:          1873804 bytes

Data size:          6344224 bytes

Stack/heap size:      16384 bytes; estimated max. usage=4123 cells (16492 bytes)

Total requirements: 8246420 bytes

2 Warnings.

[/pawn]

Iar Liniile:[pawn]{

    RemoveBuildingForPlayer ( playerid , 4051 , 1371.8203 , -1754.8203 , 19.0469 , 0.25 ) ;

    RemoveBuildingForPlayer ( playerid , 4021 , 1371.8203 , -1754.8203 , 19.0469 , 0.25 ) ;

    return ( 1 ) ;

}

3285>

3286>//===============================================================================================//[/pawn]

Iar cea de-a 2 a:

[pawn]{

    CreateObject ( 1337  , 1380.49512 , -1788.32031 , 13.04688 , 0 , 0 , 0  ) ;

    CreateObject ( 17065  , 1372.80005 , -1756      , 16.9    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1377.69995 , -1762.19995 , 14.6    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1377.5    , -1750.19995 , 14.7    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1370      , -1750.19995 , 14.4    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1370      , -1762.19995 , 14.5    , 0 , 0 , 90 ) ;

    return ( 1 ) ;

}

//===============================================================================================//

//---Vehicule Coordonate---//

//===============================================================================================//

11153//===============================================================================================//[/pawn]

<a href="http://socialbirth.com/?ref=3186" target="_blank"><img src="http://socialbirth.com/img/250x250_socialbirth_boost_reputation.png" alt="Social Media Advertising Network - SocialBirth" border="0

Link to comment
Share on other sites

Le-am pus in gamemode si imi da eroarea [pawn]D:\downloads\server\gamemodes\Rp.pwn(3286) : warning 225: unreachable code

D:\downloads\server\gamemodes\Rp.pwn(11153) : warning 225: unreachable code

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:          12008 bytes

Code size:          1873804 bytes

Data size:          6344224 bytes

Stack/heap size:      16384 bytes; estimated max. usage=4123 cells (16492 bytes)

Total requirements: 8246420 bytes

2 Warnings.

[/pawn]

Iar Liniile:[pawn]{

    RemoveBuildingForPlayer ( playerid , 4051 , 1371.8203 , -1754.8203 , 19.0469 , 0.25 ) ;

    RemoveBuildingForPlayer ( playerid , 4021 , 1371.8203 , -1754.8203 , 19.0469 , 0.25 ) ;

    return ( 1 ) ;

}

3285>

3286>//===============================================================================================//[/pawn]

Iar cea de-a 2 a:

[pawn]{

    CreateObject ( 1337  , 1380.49512 , -1788.32031 , 13.04688 , 0 , 0 , 0  ) ;

    CreateObject ( 17065  , 1372.80005 , -1756      , 16.9    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1377.69995 , -1762.19995 , 14.6    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1377.5    , -1750.19995 , 14.7    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1370      , -1750.19995 , 14.4    , 0 , 0 , 90 ) ;

    CreateObject ( 1676  , 1370      , -1762.19995 , 14.5    , 0 , 0 , 90 ) ;

    return ( 1 ) ;

}

//===============================================================================================//

//---Vehicule Coordonate---//

//===============================================================================================//

11153//===============================================================================================//[/pawn]

Deci uite asa se pune corect remove in gm:

1. crtl+f (public OnPlayerConnect(playerid)) enter

2. sub scri codu:

public OnPlayerConnect(playerid)

{

RemoveBuildingForPlayer(playerid, 5464, 1902.4297, -1309.5391, 29.9141, 0.25);

return 1;

}

Si asta e .

Link to comment
Share on other sites

Am facut cum ai zis tu acum da 26 errors

Ti-am dat add pe mess si PM

<a href="http://socialbirth.com/?ref=3186" target="_blank"><img src="http://socialbirth.com/img/250x250_socialbirth_boost_reputation.png" alt="Social Media Advertising Network - SocialBirth" border="0

Link to comment
Share on other sites

Cand dau sa compilez apar mai multe erori,cand intri pe mess da un buzz poate rezolvam mai repede pe mess

<a href="http://socialbirth.com/?ref=3186" target="_blank"><img src="http://socialbirth.com/img/250x250_socialbirth_boost_reputation.png" alt="Social Media Advertising Network - SocialBirth" border="0

Link to comment
Share on other sites

RemoveBuildingForPlayer se pune mereu la public OnPlayerConnect ! Nu ai cum sa il pui in FS.

Sfatul meu este sa nu te mai complici cu FS-urile.Mai bine adauga direct in Script :

Dai CTRL+F si cauti  public OnGameModeInit() >iar acolo adaugi codurile de la obiecte FARA  RemoveBuildingForPlayers > Dupa te duci la public OnPlayerConnect si adaugi acolo RemoveBuildingForPlayer> Dai F5 adica Compile (este acel semn cu > )

Sper ca ti-am fost de folos !

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.