hlmod.hu
https://hlmod.hu/

Plugin error
https://hlmod.hu/viewtopic.php?f=9&t=4536
Oldal: 1 / 1

Szerző:  Delicious [2012.05.27. 14:55 ]
Hozzászólás témája:  Plugin error

Ebbe mi lehet a hiba (1 van)

Kód:
  1. #include <amxmodx>

  2. #include <amxmisc>

  3. #include <cstrike>

  4.  

  5. public plugin_init() {

  6.         register_plugin("AMX Model", "1.1.1", "whitemike")

  7.         register_event("ResetHUD", "resetModel", "b")

  8.         return PLUGIN_CONTINUE

  9. }

  10.  

  11. public plugin_precache() {

  12.         precache_model("models/player/sm_model_te/sm_model_te.mdl")

  13.         precache_model("models/player/sm_model_ct/sm_model_ct.mdl")

  14.  

  15.         return PLUGIN_CONTINUE

  16. }

  17.  

  18. public resetModel(id, level, cid) {

  19.                 new CsTeams:userTeam = cs_get_user_team(id)

  20.                 if (userTeam == CS_TEAM_T) {

  21.                         cs_set_user_model(id, "model_te")

  22.                 }

  23.                 else if(userTeam == CS_TEAM_CT) {

  24.                         cs_set_user_model(id, "model_ct")

  25.                 }

  26.                 else {

  27.                         cs_reset_user_model(id)

  28.                 }

  29.         }

  30.  

  31.         return PLUGIN_CONTINUE

  32. }

  33.  

Szerző:  kiki [2012.05.27. 14:57 ]
Hozzászólás témája:  Re: Plugin error

Amit be akarsz állítani modelt nincs precachelve

Szerző:  Delicious [2012.05.27. 15:00 ]
Hozzászólás témája:  Re: Plugin error

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

files/3900374/3900374.sma(31) : error 010: invalid function or declaration

1 Error.
Could not locate output file 3900374.amx (compile failed).

:(

Szerző:  CeDee [2012.05.27. 15:07 ]
Hozzászólás témája:  Re: Plugin error

Kód:
  1. #include <amxmodx>

  2.  

  3. #include <amxmisc>

  4.  

  5. #include <cstrike>

  6.  

  7.  

  8.  

  9. public plugin_init() {

  10.  

  11.         register_plugin("AMX Model", "1.1.1", "whitemike")

  12.  

  13.         register_event("ResetHUD", "resetModel", "b")

  14.  

  15.         return PLUGIN_CONTINUE

  16.  

  17. }

  18.  

  19.  

  20.  

  21. public plugin_precache() {

  22.  

  23.         precache_model("models/player/sm_model_te/sm_model_te.mdl")

  24.  

  25.         precache_model("models/player/sm_model_ct/sm_model_ct.mdl")

  26.  

  27.  

  28.  

  29.         return PLUGIN_CONTINUE

  30.  

  31. }

  32.  

  33.  

  34.  

  35. public resetModel(id, level, cid) {

  36.  

  37.                 new CsTeams:userTeam = cs_get_user_team(id)

  38.  

  39.                 if (userTeam == CS_TEAM_T) {

  40.  

  41.                         cs_set_user_model(id, "sm_model_te")

  42.  

  43.                 }

  44.  

  45.                 else if(userTeam == CS_TEAM_CT) {

  46.  

  47.                         cs_set_user_model(id, "sm_model_ct")

  48.  

  49.                 }

  50.  

  51.                 else {

  52.  

  53.                         cs_reset_user_model(id)

  54.  

  55.                 }

  56.  

  57.         }

  58.  

Szerző:  Delicious [2012.05.27. 15:53 ]
Hozzászólás témája:  Re: Plugin error

Ty

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/