Raised This Month: $ Target: $400
 0% 

Define PlayerClass


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 09-28-2009 , 10:39   Define PlayerClass
Reply With Quote #1

How can i define this:

PHP Code:
if (g_zombie[id] && PlayerClass[id] == 0
That if this class in game it show that this class is hunter ? Like:

Health: 600 | Class: Hunter . like this? :

PHP Code:
ShowSyncHudMsg(idg_hudsync "Health: %d | Class: %d"healthPlayerClass
if no can you help me to define it heres error when i compile without
PHP Code:
ShowSyncHudMsg(idg_hudsync "Health: %d | Class: %d"healthPlayerClass
.

Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// zombie_swarm(2).sma
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\zombie_swarm(2).sma(571) : error 017: undefined symbol "PlayerClass"
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\zombie_swarm(2).sma(571) : warning 215: expression has no effect
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\zombie_swarm(2).sma(571) : error 001: expected token: ";", but found "
]"
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\zombie_swarm(2).sma(571) : error 029: invalid expression, assumed zero

// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\zombie_swarm(2).sma(571) : fatal error 107: too many error messages on
 one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file D:\Dovydo\Counter - strike Failai\Addonai\L4DPla
gue\L4DPlague\addons\amxmodx\scripting\compiled\zombie_swarm(2).amx (compile fai
led).
//
// Compilation Time: 0,31 sec
// ----------------------------------------

Press enter to exit ...

Last edited by DoviuX; 09-28-2009 at 10:49.
DoviuX is offline
Send a message via Skype™ to DoviuX
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 11-10-2009 , 10:51   Re: Define PlayerClass
Reply With Quote #2

make Class: %s - not %d. And
PHP Code:
new PlayerClass[33
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 11-11-2009 , 15:20   Re: Define PlayerClass
Reply With Quote #3

PHP Code:
new const classnames[][] =
{
   
"Hunter",
   
"Whatever"
}

//...

client_printidprint_chat"Your Class: %s"classnames[PlayerClass[id]] 
__________________
In Flames we trust!
Nextra is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode