Raised This Month: $12 Target: $400
 3% 

Whats wrong?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Trickzz
Member
Join Date: Jun 2011
Old 07-20-2012 , 12:33   Whats wrong?
#1

PHP Code:
public when_kill_player(id)
{
    if(
get_user_frags(id) == 5)
    {
        
set_user_rendering(idkRenderFxPulseSlow2552550kRenderGlow255);
    }
    else if(
get_user_frags(id) == 10)
    {
        
set_user_rendering(idkRenderFxPulseSlow2552550kRenderGlow204);
    }
    else if(
get_user_frags(id) == 20)
    {
        
set_user_rendering(idkRenderFxPulseSlow2552550kRenderGlow153);
    }
    else if(
get_user_frags(id) == 30)
    {
        
set_user_rendering(idkRenderFxPulseSlow2552550kRenderGlow102);
    }
    else if(
get_user_frags(id) == 50)
    {
        
set_user_rendering(idkRenderFxPulseSlow2552550kRenderGlow51);
    }
    else if(
get_user_frags(id == 100)
    {
        
set_user_rendering(idkRenderNormal255255255kRenderTransAlpha 0255);
    }

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


//// csdm_night.sma
// E:\CS [HOST]\HLDS 5408 [48]\cstrike\addons\amxmodx\scripting\csdm_night. sma(7
1) : error 001: expected token: ")", but found "{"
// E:\CS [HOST]\HLDS 5408 [48]\cstrike\addons\amxmodx\scripting\csdm_night. sma(7
2) : error 022: must be lvalue (non-constant)
// E:\CS [HOST]\HLDS 5408 [48]\cstrike\addons\amxmodx\scripting\csdm_night. sma(7
2) : warning 215: expression has no effect
// E:\CS [HOST]\HLDS 5408 [48]\cstrike\addons\amxmodx\scripting\csdm_night. sma(7
2) : warning 215: expression has no effect
// E:\CS [HOST]\HLDS 5408 [48]\cstrike\addons\amxmodx\scripting\csdm_night. sma(7
2) : error 001: expected token: ";", but found ")"
// E:\CS [HOST]\HLDS 5408 [48]\cstrike\addons\amxmodx\scripting\csdm_night. sma(7
2) : error 029: invalid expression, assumed zero
// E:\CS [HOST]\HLDS 5408 [48]\cstrike\addons\amxmodx\scripting\csdm_night. sma(7
2) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 5 Errors.
// Could not locate output file E:\CS [HOST]\HLDS 5408 [48]\cstrike\addons\amxmo
dx\scripting\compiled\csdm_night.amx (compile failed).
//
// Compilation Time: 0,27 sec
// ----------------------------------------

Press enter to exit ...

Last edited by ConnorMcLeod; 07-20-2012 at 13:00. Reason: Problem edited
Trickzz is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-20-2012 , 12:41   Re: Whats wrong?
#2

else if(get_user_frags(id == 100)

-->

else if(get_user_frags(id) == 100)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-20-2012 , 13:02   Re: Whats wrong?
#3

Message back.
Next time you delete your post once you have got an anwser, more than an answer you gonna get a ban.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Closed Thread



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


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