Raised This Month: $ Target: $400
 0% 

Array Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-12-2010 , 07:49   Array Problem
Reply With Quote #1

Hello.

I did a array:

PHP Code:
new class[32
When you choose the first item in my menu, 1 item in the array shout be 1.

PHP Code:
    switch(keyid)
    {
        case 
1:
        {
               
set_user_gravity(id0.5)
               class[
id] = 1
               client_print
(idprint_chat"[FM] You are a Sonic now!");
               
menu_destroy(menu_class);
               return 
PLUGIN_HANDLED;
        }
    } 
so, i registerd a event, that is called when a new round beginns. In this event i wrote:
PHP Code:
 public event_new_round(id)
 
    {
        
client_print(idprint_chat"%i <- Shout be 1 cause i set it to 1", class[id])
        return 
PLUGIN_CONTINUE

BUT I GOT ALWAYS 0 instead 1

can you tell me why?
mottzi is offline
Send a message via MSN to mottzi
 



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:43.


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