Help with this problem please
#1

Код:
stock pName(playerid)
{
	if(PlayerInfo[playerid][pAdminDuty] != 0 && PlayerInfo[playerid][pAdmin] != 0)
	{
		return mysql_GetStr(playerid, "Tag");
	}
	else
	{
		new name[MAX_PLAYER_NAME];
		GetPlayerName(playerid, name, sizeof(name));
		Replace(name, "_", " ");
		return name;
	}
}
Errors:
error 079: inconsistent return types (array & non-array)

MYSQL function:
Код:
mysql_GetStr(i, col[])
{
	new name[MAX_PLAYER_NAME];
    format(string, sizeof(string),"SELECT %s FROM players WHERE Nombre='%s'",col, GetPlayerName(i, name, sizeof(name)));
    mysql_query(string);
    return mysql_free_result();
}
Reply


Messages In This Thread
Help with this problem please - by Aguylera - 27.12.2011, 18:44
Re: Help with this problem please - by CoaPsyFactor - 27.12.2011, 18:50
Re: Help with this problem please - by Aguylera - 27.12.2011, 18:52

Forum Jump:


Users browsing this thread: 1 Guest(s)