Colenelu Posted June 2, 2014 Posted June 2, 2014 Nick:ColonelulProblema:Cand dau compiler imi apar niste erroriErori / 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 ?:
[ESS]Skull Posted June 2, 2014 Posted June 2, 2014 "RemoveBuildingForPlayer"se pune la "public OnPlayerConnect(playerid)", adica:[pawn]public OnPlayerConnect(playerid){RemoveBuildingForPlayer(playerid, 620, 260.2266, -1646.4375, 31.8828, 0.25);//Alte codurireturn 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 Codurireturn 1;}[/pawn]Daca nu ai #include <streamer>in "header", pune-l pentru a-ti functiona CreateDynamicObject!
Colenelu Posted June 2, 2014 Author Posted June 2, 2014 (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);
andy47 Posted June 2, 2014 Posted June 2, 2014 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)
Colenelu Posted June 2, 2014 Author Posted June 2, 2014 :( 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);
andy47 Posted June 2, 2014 Posted June 2, 2014 Inlocuiete public OnGameModeInit(playerid) cu public OnGameModeInit()
Colenelu Posted June 3, 2014 Author Posted June 3, 2014 (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 ------------------------------------------//
andy47 Posted June 3, 2014 Posted June 3, 2014 Din cate vad folosesti y_hooks . Inlocuieste public OnPlayerConnect(playerid) cu hook OnPlayerConnect(playerid) .
Colenelu Posted June 3, 2014 Author Posted June 3, 2014 (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);
Question
Colenelu
Nick:Colonelul
Problema:Cand dau compiler imi apar niste errori
Erori / warnings:
Lini/script:Ai incercat sa rezolvi singur ?:
8 answers to this question
Recommended Posts