28.07.2015, 02:52
Hi guys. i was converted my gamemode with no errors for sure.
i added #include <policeai>
policeai.inc you guys can see here (Credits Mauzen): http://pastebin.com/4SrEhUk7
Then, pawno gave me errors:
I added return 1; for function RNPC_OnPlayerSpawn, but with the second error, its not any connection with policeai.inc, although i was compiled successful my gamemode easily with no errors without policeai.inc
Line 941:
Please help me guys
i added #include <policeai>
policeai.inc you guys can see here (Credits Mauzen): http://pastebin.com/4SrEhUk7
Then, pawno gave me errors:
Code:
D:\RCRP\pawno\include\policeai.inc(221) : warning 209: function "RNPC_OnPlayerSpawn" should return a value D:\RCRP\pawno\include\YSI\internal\y_dohooks.inc(941) : error 021: symbol already defined: "RNPC_OnPlayerSpawn"
Line 941:
Code:
public OnPlayerSpawn(playerid)
{ // <----------- 941
P:2("Hooks_OnPlayerSpawn called: %d", playerid);
new
.......
.......
P:2("Hooks_OnPlayerSpawn end 2: %d %d", ret, _:Bit_GetBit(Bit:gs_ALS, _:ALS_OnPlayerSpawn));
HOOK_RETURN<PlayerSpawn>
}
#if defined _ALS_OnPlayerSpawn
#undef OnPlayerSpawn
#else
#define _ALS_OnPlayerSpawn
#endif
#define OnPlayerSpawn S@@_OnPlayerSpawn
ALS_FORWARD<PlayerSpawn>



