Jump to content
  • 0

pomoc Chyby v pawnu


SpiritX

Dotaz

S pawnem a editorem začínám a potřeboval bych pomoct :

#include <a_samp>

 

 

main()

{

}

 

public OnFilterScriptInit()

{

 

RemoveBuildingForPlayer(playerid, 3267, 188.2422, 2081.6484, 22.4453, 0.25);

RemoveBuildingForPlayer(playerid, 3277, 188.2422, 2081.6484, 22.4063, 0.25);

RemoveBuildingForPlayer(playerid, 3279, 262.0938, 1807.6719, 16.8203, 0.25);

RemoveBuildingForPlayer(playerid, 1411, 347.1953, 1799.2656, 18.7578, 0.25);

RemoveBuildingForPlayer(playerid, 1411, 342.9375, 1796.2891, 18.7578, 0.25);

RemoveBuildingForPlayer(playerid, 16670, 330.7891, 1813.2188, 17.8281, 0.25);

RemoveBuildingForPlayer(playerid, 3279, 113.3828, 1814.4531, 16.8203, 0.25);

RemoveBuildingForPlayer(playerid, 3279, 165.9531, 1849.9922, 16.8203, 0.25);

RemoveBuildingForPlayer(playerid, 16095, 279.1328, 1829.7813, 16.6328, 0.25);

RemoveBuildingForPlayer(playerid, 3280, 245.3750, 1862.3672, 20.1328, 0.25);

RemoveBuildingForPlayer(playerid, 3280, 246.6172, 1863.3750, 20.1328, 0.25);

RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);

RemoveBuildingForPlayer(playerid, 3279, 103.8906, 1901.1016, 16.8203, 0.25);

RemoveBuildingForPlayer(playerid, 3279, 161.9063, 1933.0938, 16.8203, 0.25);

RemoveBuildingForPlayer(playerid, 3279, 233.4297, 1934.8438, 16.8203, 0.25);

RemoveBuildingForPlayer(playerid, 3279, 267.0625, 1895.2969, 16.8203, 0.25);

RemoveBuildingForPlayer(playerid, 3267, 354.4297, 2028.4922, 22.4141, 0.25);

RemoveBuildingForPlayer(playerid, 3277, 354.4141, 2028.5000, 22.3750, 0.25);

CreateObject(3279, 356.82, 2028.47, 21.63, 0.00, 0.00, 0.00);

CreateObject(3279, 187.43, 2082.99, 21.60, 0.00, 0.00, 0.00);

CreateObject(3268, 214.64, 1982.70, 16.63, 0.00, 0.42, 179.76);

 

return 1;

}

a když dám F5 tak mi to napíše 18 chyb E:\GTA San Andreas\pawno\Untitled.pwn(11) : error 017: undefined symbol "RemoveBuildingForPlayer"

Díky

Link to comment
Share on other sites

12 odpovědí na tuto otázku

Recommended Posts

  • 0

#include RemoveBuildingForPlayer takhle?

 

ted mi to ukázalo:

E:\GTA San Andreas\pawno\Untitled.pwn(2) : fatal error 100: cannot read from file: "RemoveBuildingForPlayer"

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

1 Error.

Link to comment
Share on other sites

  • 0
  • Administrátor

musíš si naincludovat RemoveBuildingForPlayer

Když tomu nerozumíš tak laskavě neraď.

 

To autor:

1. Máš nejspíš staré pawno auktualizuj ho

2. Fce RemoveBuildingForPlayer má argument playerid ... vidíš player id v publicu OnFilterScriptInit ? dej to do OnPlayerConnect!

Link to comment
Share on other sites

  • 0

díky ale furt to ukazuje stejnou chybu

E:\GTA San Andreas\pawno\Untitled.pwn(2) : fatal error 100: cannot read from file: "RemoveBuildingForPlayer"

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Link to comment
Share on other sites

  • 0

#include

public OnFilterScriptInit()
{
CreateObject(3279, 356.82, 2028.47, 21.63, 0.00, 0.00, 0.00);
CreateObject(3279, 187.43, 2082.99, 21.60, 0.00, 0.00, 0.00);
CreateObject(3268, 214.64, 1982.70, 16.63, 0.00, 0.42, 179.76);
return 1;
}

public OnPlayerConnect(playerid){

RemoveBuildingForPlayer(playerid, 3267, 188.2422, 2081.6484, 22.4453, 0.25);
RemoveBuildingForPlayer(playerid, 3277, 188.2422, 2081.6484, 22.4063, 0.25);
RemoveBuildingForPlayer(playerid, 3279, 262.0938, 1807.6719, 16.8203, 0.25);
RemoveBuildingForPlayer(playerid, 1411, 347.1953, 1799.2656, 18.7578, 0.25);
RemoveBuildingForPlayer(playerid, 1411, 342.9375, 1796.2891, 18.7578, 0.25);
RemoveBuildingForPlayer(playerid, 16670, 330.7891, 1813.2188, 17.8281, 0.25);
RemoveBuildingForPlayer(playerid, 3279, 113.3828, 1814.4531, 16.8203, 0.25);
RemoveBuildingForPlayer(playerid, 3279, 165.9531, 1849.9922, 16.8203, 0.25);
RemoveBuildingForPlayer(playerid, 16095, 279.1328, 1829.7813, 16.6328, 0.25);
RemoveBuildingForPlayer(playerid, 3280, 245.3750, 1862.3672, 20.1328, 0.25);
RemoveBuildingForPlayer(playerid, 3280, 246.6172, 1863.3750, 20.1328, 0.25);
RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3279, 103.8906, 1901.1016, 16.8203, 0.25);
RemoveBuildingForPlayer(playerid, 3279, 161.9063, 1933.0938, 16.8203, 0.25);
RemoveBuildingForPlayer(playerid, 3279, 233.4297, 1934.8438, 16.8203, 0.25);
RemoveBuildingForPlayer(playerid, 3279, 267.0625, 1895.2969, 16.8203, 0.25);
RemoveBuildingForPlayer(playerid, 3267, 354.4297, 2028.4922, 22.4141, 0.25);
RemoveBuildingForPlayer(playerid, 3277, 354.4141, 2028.5000, 22.3750, 0.25);
return 1;
}

 

+ stiahni si nove includy aby ti to išlo ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...