Raised This Month: $ Target: $400
 0% 

Problem with an variable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Netsys
Senior Member
Join Date: Feb 2010
Old 02-15-2013 , 17:26   Problem with an variable
Reply With Quote #1

how it is assumed that I have to do?

PHP Code:
enum _:PlayerData
{
   
P_Name[32],
   
P_Connected,
   ...
}

new 
g_player_data[33][PlayerData];

public 
exampleid )
{
   
client_printid print_chat "The var g_player_data[id][P_Name] is %s"g_player_data[id][P_Name][0] == EOS "empty" "not empty" );

Error: array must be indexed (variable "-unknown-")

Last edited by Netsys; 02-15-2013 at 17:27.
Netsys is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 02-15-2013 , 23:08   Re: Problem with an variable
Reply With Quote #2

!g_player_data[id][P_Name] ? "empty" : "not empty"
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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 21:42.


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