AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help : Unknow Error , Stop compiling (https://forums.alliedmods.net/showthread.php?t=2408)

sanaell 06-04-2004 07:08

Help : Unknow Error , Stop compiling
 
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!!!

|PaRa-BoL 06-04-2004 07:49

what error ? lol

sanaell 06-04-2004 07:52

Quote:

Originally Posted by |PaRa-BoL
what error ? lol


Error to compile UNKNOW !!!!


no line
not fair :)

Mugwump 06-04-2004 11:51

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

sanaell 06-04-2004 21:03

yes and i ve remove the

"TERRORIST" to change for TERRORIST
in test

and.... that compile :)

Mugwump 06-05-2004 22:52

Great to hear! :)

Mugwump


All times are GMT -4. The time now is 14:37.

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