pawn Код:
forward g@GangZones(playerid);
public g@GangZones(playerid)
{
new rows, fields, /*gzNome[128], gzDono[128],*/ result[128];
cache_get_data(rows, fields, xConexao);
if(rows)
{
cache_get_field_content(0, "name", GangZoneInfo[playerid][gzName], xConexao);
cache_get_field_content(0, "dono", result, xConexao);
GangZoneInfo[playerid][gzOwner] = strval(result);
switch(GangZoneInfo[playerid][gzOwner])
{
case 1: format(result, sizeof result, "Groove");
case 2: format(result, sizeof result, "Ballas");
case 3: format(result, sizeof result, "Vagos");
case 4: format(result, sizeof result, "Aztecas");
}
format(result, sizeof result, "%s: %s", GangZoneInfo[playerid][gzName], result);
SendClientMessage(playerid, -1, result);
}
return 1;
}