little help.
#1

Hi peoples i want to ask one thing.Maybe can say what is wrong here:

Код:
while(mysql_retrieve_row())
{
new players,username[25],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
players ++;
if(mysql_fetch_field_row(username, "Name") == name)
{
SendClientMessage(playerid,COLOR_GREEN,"Hello");
players = 0;
mysql_free_result();
}
return 1;
}
It's not all code,but when i compile in this line:

Код:
if(mysql_fetch_field_row(username, "Name") == name)
{
I get this error:

pawn Код:
C:\Documents and Settings\Owner\Desktop\NAUJAUSIAS SAMP SERVERIS\gamemodes\freeroam.pwn(1102) : error 033: array must be indexed (variable "name")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
little help. - by budelis - 18.09.2011, 14:28
Re: little help. - by =WoR=G4M3Ov3r - 18.09.2011, 14:33
Re: little help. - by budelis - 18.09.2011, 14:50
Re: little help. - by _ELIX_ - 18.09.2011, 16:28
Re: little help. - by budelis - 18.09.2011, 16:36
Re: little help. - by Vince - 18.09.2011, 16:47
Re: little help. - by Xyrex - 18.09.2011, 16:48
Re: little help. - by budelis - 19.09.2011, 13:05
Re: little help. - by =WoR=Varth - 19.09.2011, 13:47
Re: little help. - by budelis - 19.09.2011, 14:56

Forum Jump:


Users browsing this thread: 2 Guest(s)