AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] thanks (https://forums.alliedmods.net/showthread.php?t=171406)

quark 11-05-2011 14:43

[SOLVED] thanks
 
Solved +karma

Napoleon_be 11-05-2011 14:55

Re: [HELP] Plugin Code
 
if(cs_get_user_team(id) == CS_TEAM_T) {

quark 11-05-2011 14:57

Re: [HELP] Plugin Code
 
1- undefined symbol id -.-
2- already tried

m0skVi4a 11-05-2011 14:59

Re: [HELP] Plugin Code
 
new id = read_data(2) in the start of function if this is only for victims

quark 11-05-2011 16:14

Re: [HELP] Plugin Code
 
Quote:

Originally Posted by m0skVi4a (Post 1590746)
new id = read_data(2) in the start of function if this is only for victims

PHP Code:

if( get_user_team(id) == CS_TEAM_T )
        {
        
        
/* --| Setting killer points when killed a enemy */
        
gKillerPointskiller ] += get_pcvar_numgKillerPointsCvar );
        {
            return 
PLUGIN_HANDLED;
        } 

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

Error: Undefined symbol "load_client_points" on line 220
Error: Undefined symbol "save_client_points" on line 245
Error: Undefined symbol "allready_have" on line 352
Error: Undefined symbol "dont_have" on line 359
Error: Undefined symbol "client_printc" on line 366
Error: Undefined symbol "allready_have" on line 380
Error: Undefined symbol "dont_have" on line 387
Error: Undefined symbol "client_printc" on line 396
Error: Undefined symbol "allready_have" on line 410
Error: Undefined symbol "dont_have" on line 417
Error: Undefined symbol "client_printc" on line 424
Error: Undefined symbol "allready_have" on line 438
Error: Undefined symbol "dont_have" on line 445
Error: Undefined symbol "client_printc" on line 452
Error: Undefined symbol "allready_have" on line 466
Error: Undefined symbol "dont_have" on line 473
Error: Undefined symbol "client_printc" on line 480
Error: Undefined symbol "allready_have" on line 494
Error: Undefined symbol "dont_have" on line 501
Error: Undefined symbol "client_printc" on line 508
Error: Undefined symbol "allready_have" on line 522
Error: Undefined symbol "dont_have" on line 529
Error: Undefined symbol "client_printc" on line 536
Error: Undefined symbol "allready_have" on line 550
Error: Undefined symbol "dont_have" on line 557
Error: Undefined symbol "client_printc" on line 564

Compilation aborted.
26 Errors.
Could not locate output file C:\Users\Alcino\Desktop\Deathrun_Shop.amx (compile failed).

plowed 11-05-2011 16:28

Re: [HELP] Plugin Code
 
PHP Code:

        gKillerPointskiller ] += get_pcvar_numgKillerPointsCvar );
        {
            return 
PLUGIN_HANDLED;
        } 

That makes no sense

PHP Code:

get_user_team(id) == CS_TEAM_T 

wouldnt work, because you declared the variable killer and victim with an player index and not id.

quark 11-05-2011 16:30

Re: [HELP] Plugin Code
 
Can u fix ?

plowed 11-05-2011 17:15

Re: [HELP] Plugin Code
 
This is Scripting help and even with a low knowledge of coding you could fix it yourself.
The errors in your last post arent related with your thread question, too.

At least show the full code..

quark 11-05-2011 17:36

Re: [HELP] Plugin Code
 
thanks! Solved, you are the best .

plowed 11-05-2011 18:06

Re: [HELP] Plugin Code
 
1 Attachment(s)
try it


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

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