Raised This Month: $ Target: $400
 0% 

Help : Unknow Error , Stop compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 06-04-2004 , 07:08   Help : Unknow Error , Stop compiling
Reply With Quote #1

Code:
public ark_vie(parm[2]){     new vIndex = parm[0]     if (is_user_alive(vIndex))         return PLUGIN_CONTINUE     spawn(vIndex)     set_task(0.1,"ark_spawn",2,parm,2)     set_task(0.2,"ark_spawn",2,parm,2)     set_task(0.5,"ark_suit",2,parm,2)       give_item(vIndex, "weapon_knife")     return PLUGIN_CONTINUE } public ark_suit(parm[2]){     new vIndex = parm[0]     give_item(vIndex, "item_suit")     give_item(vIndex, "weapon_knife")     new tIndex = get_user_team(vIndex)     if(tIndex == "TERRORIST")         {             give_item(vIndex,"weapon_glock")             give_item(vIndex,"ammo_9mm")         }         else         {                 give_item(vIndex,"weapon_usp")                 give_item(vIndex,"ammo_45acp")         }     return PLUGIN_CONTINUE } public ark_spawn(parm[2]){     new vIndex = parm[0]     spawn(vIndex)     return PLUGIN_CONTINUE }


i ve put that in my code, all function are ok

but it seem to be the TEAM test who cause error, but i don t see where!!!
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
|PaRa-BoL
Junior Member
Join Date: May 2004
Old 06-04-2004 , 07:49  
Reply With Quote #2

what error ? lol
|PaRa-BoL is offline
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 06-04-2004 , 07:52  
Reply With Quote #3

Quote:
Originally Posted by |PaRa-BoL
what error ? lol

Error to compile UNKNOW !!!!


no line
not fair
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
Mugwump
Senior Member
Join Date: May 2004
Old 06-04-2004 , 11:51  
Reply With Quote #4

In the team check did you define what TERRORIST means?

get_user_team returns a 1 for Terrorist and a 2 for CT, so when you are checking for the team TERRORIST make sure you did this beforehand:

#define TERRORIST 1
#define CT 2

Mugwump
Mugwump is offline
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 06-04-2004 , 21:03  
Reply With Quote #5

yes and i ve remove the

"TERRORIST" to change for TERRORIST
in test

and.... that compile
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
Mugwump
Senior Member
Join Date: May 2004
Old 06-05-2004 , 22:52  
Reply With Quote #6

Great to hear!

Mugwump
Mugwump is offline
Reply



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 14:37.


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