array must indexed help me plz
#4

PHP код:
if(InDM[playerid] == 1)
{
new 
aName[MAX_PLAYER_NAME], string2[128];
GetPlayerName(playeridaName,sizeof(aName));
format(string2,sizeof(string2),"[DM] %s[%i] : {FFFFFF}%s",aName,playerid,text);
printf(string2);
SendClientMessageToAll(GetPlayerColor(playerid),string2);
return 
0;

This should work.
You simple trying to access the array from enum, which is not in the enum :/
Just use
PHP код:
InDM[playerid] = value 
instead of using PlayerInfo enum :/
Reply


Messages In This Thread
array must indexed help me plz - by Aagya - 14.09.2015, 06:21
Re: array must indexed help me plz - by PMH - 14.09.2015, 07:10
Re: array must indexed help me plz - by Aagya - 14.09.2015, 07:29
Re: array must indexed help me plz - by karemmahmed22 - 14.09.2015, 08:20
Re: array must indexed help me plz - by Aagya - 14.09.2015, 08:24
Re: array must indexed help me plz - by karemmahmed22 - 14.09.2015, 08:40
Re: array must indexed help me plz - by Aagya - 14.09.2015, 08:43
Re: array must indexed help me plz - by karemmahmed22 - 14.09.2015, 08:47
Re: array must indexed help me plz - by Aagya - 14.09.2015, 09:13
Re: array must indexed help me plz - by X337 - 14.09.2015, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)