我想爲gta 5使用menya baes做一個小腳本,我想知道如果有人能幫助我。我目前遇到的問題是當我啓用godmode時,我無法關閉它。我意識到錯誤是遊戲等待我不成爲人,但是我找不到工作開關,因爲void SET_PLAYER_INVINCIBLE(Player player, BOOL toggle)
在編譯時給我一個錯誤。反正感謝提前的幫助下,這裏是代碼gta 5腳本錯誤godmode
void Player()
{
// Initialise local variables here:
bool BoolOff = 0; bool BoolOn = 0; bool sample_invisible = 0; bool model_changer = 0;
// Options' text here:
AddTitle("Self Options");
AddLocal("Invincibility", GET_PLAYER_INVINCIBLE(PLAYER_ID()), BoolOn, BoolOff);
AddLocal("Invisible", !IS_ENTITY_VISIBLE(PLAYER_PED_ID()), sample_invisible, sample_invisible);
AddOption("Model Changer", model_changer);
// Options' code here:
if (BoolOn)
{
SET_PLAYER_INVINCIBLE(PLAYER_ID(), BOOL)toggle);
return; // Either use return; to exit to the switch if you don't have code below that you want executed.
}
if (sample_invisible) {
if (IS_ENTITY_VISIBLE(PLAYER_PED_ID())) SET_ENTITY_VISIBLE(PLAYER_PED_ID(), 0);
else SET_ENTITY_VISIBLE(PLAYER_PED_ID(), 1);
return;
}
'SET_PLAYER_INVINCIBLE(PLAYER_ID(),BOOL)切換);'是不是有效的C++ ,除非出現一些非常奇怪的宏觀事件。 – cdhowie