18.09.2011, 14:28
Hi peoples i want to ask one thing.Maybe can say what is wrong here:
It's not all code,but when i compile in this line:
I get this error:
Код:
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; }
Код:
if(mysql_fetch_field_row(username, "Name") == name) {
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.