Raised This Month: $ Target: $400
 0% 

Problem with id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Loupu.
Member
Join Date: Jul 2013
Old 12-30-2013 , 09:54   Problem with id
Reply With Quote #1

Hi , just another problem when try-ing to compile the plugin i got the error:
Code:
mix.sma(559) : error 017: undefined symbol "id"
mix.sma(559) : warning 215: expression has no effect
mix.sma(559) : warning 215: expression has no effect
mix.sma(559) : warning 215: expression has no effect
mix.sma(559) : warning 215: expression has no effect
mix.sma(559) : error 001: expected token: ";", but found ")"
mix.sma(559) : error 029: invalid expression, assumed zero
mix.sma(559) : fatal error 107: too many error messages on one line
This the line:
Code:
client_print(id, print_chat, "%L", LANG_PLAYER, "MINI-ACE WAS REGISTERED!")
And this the code:
Code:
                    if (g_KillsAce[tempid] == 4)
                    {
                        new name[32]
                        get_user_name(tempid, name, 31)
                    
                        client_print(0, print_chat, "%L", LANG_PLAYER, "did an MINI-ACE", name)
                        client_print(id, print_chat, "%L", LANG_PLAYER, "MINI-ACE WAS REGISTERED!")
                    }
Loupu. is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-30-2013 , 09:55   Re: Problem with id
Reply With Quote #2

Use tempid, not id.
Also, this is not how you use Multi-language.

PHP Code:
client_print(tempidprint_chat"%L"LANG_PLAYER"MINI-ACE WAS REGISTERED!"
->
PHP Code:
client_print(tempidprint_chat"%L"LANG_PLAYER"MINI_ACE_MADE"
Then in your multi-language file.

Quote:
[en]
MINI_ACE_MADE = "You made a mini-ace."
__________________

Last edited by Kia; 12-30-2013 at 10:28.
Kia is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-30-2013 , 09:55   Re: Problem with id
Reply With Quote #3

Undefined symbol means you are using a variable that doesn't exist. Either define it or change it
__________________
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
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 10:08.


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