hlmod.hu
https://hlmod.hu/

Ilyenkor mi van?
https://hlmod.hu/viewtopic.php?f=10&t=9116
Oldal: 1 / 1

Szerző:  Gatshow [2013.06.24. 12:01 ]
Hozzászólás témája:  Ilyenkor mi van?

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fun>
  4. #include <cstrike>
  5.  
  6. #define PLUGIN "Alap pisztolyok"
  7. #define VERSION "1.0"
  8. #define AUTHOR "Gatshow"
  9.  
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13.  
  14. register_logevent("koreleje",2,"1=Round_Start")
  15. }
  16.  
  17. public koreleje(id)
  18. {
  19. if(cs_get_user_team(id) == CS_TEAM_CT)
  20. {
  21. give_item(id, weapon_usp)
  22. }
  23. else if (cs_get_user_team(id) == CS_TEAM_T)
  24. {
  25. give_item(id, weapon_glock18)
  26. }
  27. }
  28.  


Kód:
Forras mentese sikeres. (ID: 51c81877d8ba9)
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

51c81877d8ba9.sma(25) : error 017: undefined symbol "weapon_usp"
51c81877d8ba9.sma(29) : error 017: undefined symbol "weapon_glock18"

2 Errors.
Could not locate output file 51c81877d8ba9.amx (compile failed).
Hiba! - Az atalakitas sikertelen. (Forras fajlok torolve.)


Szerintem minden lehetséges inc-et beraktam szóval, nem értem hogy miért nem érzi definiáltnak

Szerző:  Gatshow [2013.06.24. 12:02 ]
Hozzászólás témája:  Re: Ilyenkor mi van?

Megvan !! nem kell

Szerző:  IrOn [2013.06.24. 12:03 ]
Hozzászólás témája:  Re: Ilyenkor mi van?

ilyenkor hiba van, amúgy ezeket nem változóként, hanem sima stringként kell kezelni

"" <-- ilyenbe írd bele

edit: ok

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