Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4323 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

(redaguota)

Sveiki, iškilo problema dėl plugino, kai compilinu raso:

 

error 088: number of arguments does not match definition 

 

1 Error.

Could not locate output file compiled /zpxp_9_human_gravity.amx (compile failed)

 

Čia .sma failo vidus:

 

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <zombiexp>
 
// Human Attributes
new const hclass_name[] = { "Supreme Gravity" } // name
new const hclass_info[] = { "AK-47 and low gravity" } // description
new const hclass_model[] = { "" } // model
new const hclass_weapons[] = { WEAPON_AK47, WEAPON_GLOCK18 } // weapons
const hclass_health = 100 // health
const hclass_speed = 240 // speed
const Float:hclass_gravity = 0.7 // gravity
const hclass_level = 9 // level required to use
 
// Class IDs
new g_hclassid
 
// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
new registerText[32]
formatex( registerText, sizeof registerText - 1, "[ZPXP] %s human", hclass_name)
 
register_plugin(registerText, "1.0", "Example")
 
// Register the new class and store ID for reference
g_hclassid = zpxp_register_human_class(hclass_name, hclass_info, hclass_model, hclass_weapons, hclass_health, hclass_speed, hclass_gravity, hclass_level)
 
if(g_hclassid == -1)
{
server_print("[ZPXP] You have not properly setup your Zombie XP Mod.");
}
}
 
// User Infected forward
public zp_user_infected_post(id, infector)
{
// Check if the infected player is using our custom zombie class
if (zp_get_user_human_class(id) != g_hclassid) return;
 
// Undo any settings we have saved here
 
}
 
public zp_user_humanized_post(id)
{
// Check if the infected player is using our custom zombie class
if (zp_get_user_human_class(id) != g_hclassid) return;
 
// User turned human
if (zp_get_user_survivor(id) == 1)
{
// He's survivor, remove any changes made in the plugin
zp_user_infected_post(id, 0)
} else {
zp_round_started_human(id)
}
}
 
//This is a forward from zpxp, as opposed to ZPs round_start (which is when infection begins) this is the true beginning of the round
public zp_round_started_human(id)
{
if (zp_get_user_human_class(id) != g_hclassid) return;
 
// Set our human's powers!
 
}
Redaguota , nario mostras30

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4323 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Prisijungti prie diskusijos

Palikti atsakymą galite iš karto, o užsiregistruoti vėliau. Jeigu jau turite paskyrą mūsų forume, Prisijunkite.

Svečias
Atsakyti šioje temoje...

×   Įklijuotas tekstas turi teksto formatavimą.   Pašalinti teksto formatavimą

  Galimi tik 75 veidukai.

×   Nuoroda buvo automatiškai įterpta.   Įterpti nuorodą paprastai

×   Jūsų ankstesnis pranešimas buvo atkurtas.   Išvalyti redaktorių

×   Jūs negalite įkelti nuotraukas tiesiogiai.Įkelkite arba įdėkite nuotraukas iš URL.

  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai


×
×
  • Sukurti naują...