09.02.2014, 14:48
Yes your codes who was in include i left it. But this
#define OnPlayerClickPlayerTextDraw MP_OPCPTD
Is in my gamemode. But can i do that?
Where this code in your include:
Upload this thing to my gamemode like this:
Just a this code, and then delete from your include:
#if defined _ALS_OnPlayerClickPlayerTextDra
#undef OnPlayerClickPlayerTextDraw
#else
#define _ALS_OnPlayerClickPlayerTextDra
#endif
#define OnPlayerClickPlayerTextDraw _gCasino_OPCPTD
forward _gCasino_OPCPTD(playerid, PlayerText
layertextid);
#define OnPlayerClickPlayerTextDraw MP_OPCPTD
Is in my gamemode. But can i do that?
Where this code in your include:
Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) {
if (GetPVarInt(playerid, "ss_casino_use") == 1) {
new _machineID = GetPVarInt(playerid, "ss_casino_using");
switch (_machines[_machineID][cm_type]) {
case CASINO_MACHINE_POKER: {
for (new _b=0; _b<5; _b++) {
if (playertextid == poker_hold[playerid][_b]) {
cPoker_button(playerid, CASINO_POKER_BTN_HOLD, _b);
}
}
}
}
}
if (funcidx("_gCasino_OPCPTD") != -1){
return CallLocalFunction("_gCasino_OPCPTD", "ii", playerid, _:playertextid);
}
return 1;
}
Код:
if (GetPVarInt(playerid, "ss_casino_use") == 1) {
new _machineID = GetPVarInt(playerid, "ss_casino_using");
switch (_machines[_machineID][cm_type]) {
case CASINO_MACHINE_POKER: {
for (new _b=0; _b<5; _b++) {
if (playertextid == poker_hold[playerid][_b]) {
cPoker_button(playerid, CASINO_POKER_BTN_HOLD, _b);
}
}
}
}
}
#if defined _ALS_OnPlayerClickPlayerTextDra
#undef OnPlayerClickPlayerTextDraw
#else
#define _ALS_OnPlayerClickPlayerTextDra
#endif
#define OnPlayerClickPlayerTextDraw _gCasino_OPCPTD
forward _gCasino_OPCPTD(playerid, PlayerText
layertextid);
