24.11.2013, 18:14
You still using this?
Try rempving that code in the including:
and add at the bottom of the include:
maybe this helps you. sry for bumping this old topic.
Try rempving that code in the including:
Код:
// line 61-71 forward UAC_OnPlayerStateChange(playerid, newstate, oldstate); forward UAC_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger); forward UAC_OnPlayerCommandText(playerid, cmdtext[]); forward UAC_OnPlayerText(playerid, text[]); forward UAC_OnPlayerConnect(playerid); forward UAC_OnPlayerSpawn(playerid); forward UAC_OnPlayerDisconnect(playerid,reason); forward UAC_OnGameModeInit(); forward UAC_OnGameModeExit(); forward UAC_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid); forward UAC_OnPlayerDeath(playerid,killerid,reason); // at the bottom #define OnPlayerStateChange UAC_OnPlayerStateChange #define OnPlayerEnterVehicle UAC_OnPlayerEnterVehicle #define OnPlayerCommandText UAC_OnPlayerCommandText #define OnPlayerText UAC_OnPlayerText #define OnPlayerConnect UAC_OnPlayerConnect #define OnPlayerDisconnect UAC_OnPlayerDisconnect #define OnGameModeInit UAC_OnGameModeInit #define OnGameModeExit UAC_OnGameModeExit #define OnPlayerSpawn UAC_OnPlayerSpawn #define OnPlayerInteriorChange UAC_OnPlayerInteriorChange #define OnPlayerDeath UAC_OnPlayerDeath
Код:
#if defined _ALS_OnPlayerCommandText #undef OnPlayerCommandText #else #define _ALS_OnPlayerCommandText #endif #define OnPlayerCommandText UAC_OnPlayerCommandText forward UAC_OnPlayerCommandText(playerid, cmdtext[]); #if defined _ALS_OnPlayerStateChange #undef OnPlayerStateChange #else #define _ALS_OnPlayerStateChange #endif #define OnPlayerStateChange UAC_OnPlayerStateChange forward UAC_OnPlayerStateChange(playerid, newstate, oldstate); #if defined _ALS_OnPlayerEnterVehicle #undef OnPlayerEnterVehicle #else #define _ALS_OnPlayerEnterVehicle #endif #define OnPlayerEnterVehicle UAC_OnPlayerEnterVehicle forward UAC_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger); #if defined _ALS_OnPlayerText #undef OnPlayerText #else #define _ALS_OnPlayerText #endif #define OnPlayerText UAC_OnPlayerText forward UAC_OnPlayerText(playerid, text[]); #if defined _ALS_OnPlayerConnect #undef OnPlayerConnect #else #define _ALS_OnPlayerConnect #endif #define OnPlayerConnect UAC_OnPlayerConnect forward UAC_OnPlayerConnect(playerid); #if defined _ALS_OnPlayerDisconnect #undef OnPlayerDisconnect #else #define _ALS_OnPlayerDisconnect #endif #define OnPlayerDisconnect UAC_OnPlayerDisconnect forward UAC_OnPlayerDisconnect(playerid,reason); #if defined _ALS_OnGameModeInit #undef OnGameModeInit #else #define _ALS_OnGameModeInit #endif #define OnGameModeInit UAC_OnGameModeInit forward UAC_OnGameModeInit(); #if defined _ALS_OnGameModeExit #undef OnGameModeExit #else #define _ALS_OnGameModeExit #endif #define OnGameModeExit UAC_OnGameModeExit forward UAC_OnGameModeExit(); #if defined _ALS_OnPlayerSpawn #undef OnPlayerSpawn #else #define _ALS_OnPlayerSpawn #endif #define OnPlayerSpawn UAC_OnPlayerSpawn forward UAC_OnPlayerSpawn(playerid); #if defined _ALS_OnPlayerInteriorChange #undef OnPlayerInteriorChange #else #define _ALS_OnPlayerInteriorChange #endif #define OnPlayerInteriorChange UAC_OnPlayerInteriorChange forward UAC_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid); #if defined _ALS_OnPlayerDeath #undef OnPlayerDeath #else #define _ALS_OnPlayerDeath #endif #define OnPlayerDeath UAC_OnPlayerDeath forward UAC_OnPlayerDeath(playerid,killerid,reason);