AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem with an variable (https://forums.alliedmods.net/showthread.php?t=208626)

Netsys 02-15-2013 17:26

Problem with an variable
 
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-")

lucas_7_94 02-15-2013 23:08

Re: Problem with an variable
 
!g_player_data[id][P_Name] ? "empty" : "not empty"


All times are GMT -4. The time now is 21:42.

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