Jump to content

Question

Posted

Nick:Colonelul

Problema:Cand dau compiler imi apar niste errori

Erori / warnings:

(
(69784) : error 021: symbol already defined: "RemoveBuildingForPlayer"
(69788) : error 021: symbol already defined: "CreateDynamicObject"
Lini/script:
69784     RemoveBuildingForPlayer(playerid, 620, 260.2266, -1646.4375, 31.8828, 0.25);
69788     CreateDynamicObject(17656, 258.89999, -1683.09998, 40.30000,   0.50000, 0.00000, 165.00000);

Ai incercat sa rezolvi singur ?:

8 answers to this question

Recommended Posts

Posted

"RemoveBuildingForPlayer"se pune la "public OnPlayerConnect(playerid)", adica:

[pawn]public OnPlayerConnect(playerid)

{

RemoveBuildingForPlayer(playerid, 620, 260.2266, -1646.4375, 31.8828, 0.25);

//Alte coduri

return 1;

}[/pawn]

si CreateDynamicObject se pune la "public OnGameModeinit/OnFilterscriptinit(playerid)" adica

[pawn]public OnGameModeInit(playerid)\OnFilterScriptinit(playerid)

{

CreateDynamicObject(17656, 258.89999, -1683.09998, 40.30000,  0.50000, 0.00000, 165.00000);

//Alte Coduri

return 1;

}[/pawn]

Daca nu ai

#include <streamer>

in "header", pune-l pentru a-ti functiona CreateDynamicObject!

Posted

(26) : fatal error 100: cannot read from file: "mSelection"
26       #include    <mSelection>    // 12
imi da o erroare inainte era
//#include    <mSelection>    // 12
si daca dadeam asa imi aparea alte errori
(69785) : error 021: symbol already defined: "Hook_OnPlayerConnect"
(69792) : error 025: function heading differs from prototype
(69792) : error 021: symbol already defined: "Hook_OnGameModeInit"
(69792) : error 029: invalid expression, assumed zero
(69792) : fatal error 107: too many error messages on one line
uite si liniile:
69784public OnPlayerConnect(playerid)
69785{
RemoveBuildingForPlayer(playerid, 620, 260.2266, -1646.4375, 31.8828, 0.25);
RemoveBuildingForPlayer(playerid, 621, 276.3828, -1650.5547, 31.2891, 0.25);
RemoveBuildingForPlayer(playerid, 6444, 285.2656, -1611.9453, 34.3359, 0.25);
return 1;
69790}
69792public OnGameModeInit(playerid)\OnFilterScriptinit(playerid)
{
69794CreateDynamicObject(17656, 258.89999, -1683.09998, 40.30000,   0.50000, 0.00000, 165.00000);

Posted

In legatura cu mSelection nu ai fisierul mSelection.inc in folderul pawno/include .

Linia aceata

public OnGameModeInit(playerid)\OnFilterScriptinit(playerid)
inlocuieteo cu
public OnGameModeInit(playerid)

Posted

:( imi apar alte errori

(69785) : error 021: symbol already defined: "Hook_OnPlayerConnect"
(69792) : error 025: function heading differs from prototype
(69793) : error 021: symbol already defined: "Hook_OnGameModeInit"
69784public OnPlayerConnect(playerid)
69785{
RemoveBuildingForPlayer(playerid, 620, 260.2266, -1646.4375, 31.8828, 0.25);
RemoveBuildingForPlayer(playerid, 621, 276.3828, -1650.5547, 31.2891, 0.25);
RemoveBuildingForPlayer(playerid, 6444, 285.2656, -1611.9453, 34.3359, 0.25);
return 1;
69790}
69792public OnGameModeInit(playerid)
69793{
CreateDynamicObject(17656, 258.89999, -1683.09998, 40.30000,   0.50000, 0.00000, 165.00000);

Posted

(69785) : error 021: symbol already defined: "Hook_OnPlayerConnect"
(69793) : error 021: symbol already defined: "Hook_OnGameModeInit"
[pawn]69784public OnPlayerConnect(playerid) 69785{ RemoveBuildingForPlayer(playerid, 620, 260.2266, -1646.4375, 31.8828, 0.25); RemoveBuildingForPlayer(playerid, 621, 276.3828, -1650.5547, 31.2891, 0.25); RemoveBuildingForPlayer(playerid, 6444, 285.2656, -1611.9453, 34.3359, 0.25); return 1; 69790}[/pawn]
69783//------------------------- Insula admin ------------------------------------------//

Posted

Din cate vad folosesti y_hooks . Inlocuieste

public OnPlayerConnect(playerid)
cu
hook OnPlayerConnect(playerid)

.

Posted

(69784) : error 010: invalid function or declaration
(69789) : error 010: invalid function or declaration
(69793) : error 021: symbol already defined: "Hook_OnGameModeInit"
69784hook OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 620, 260.2266, -1646.4375, 31.8828, 0.25);
RemoveBuildingForPlayer(playerid, 621, 276.3828, -1650.5547, 31.2891, 0.25);
RemoveBuildingForPlayer(playerid, 6444, 285.2656, -1611.9453, 34.3359, 0.25);
69789return 1;
}
//
public OnGameModeInit()
{
69794CreateDynamicObject(17656, 258.89999, -1683.09998, 40.30000,   0.50000, 0.00000, 165.00000);

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.