05.06.2014, 02:46
Estou criando um comando gzinfo Mas esta dando erros e warnings e eu jб nгo sei mais oque fazer alguem pode me ajudar ?
Linhas do erro
[48030] if(gZonesData[ZoneOwner] == TEAM_NONE)
[48033]format(gzs,128,"%s:%s\n", TurfsCoords[zName],gZonesData[zoneid][ZoneOwner]);
[48025] new name[24],gzs[128],tmp [32],string[2048];
pawn Код:
dcmd_gzinfo(playerid, params[])
{
new name[24],gzs[128],tmp [32],string[2048];
for(new i = 1; i < MAX_TURFS; ++i)
{
format(gzs,128,"/RPG/zones/%s.ini");
if(gZonesData[ZoneOwner] == TEAM_NONE)
name = "Desocupado";
format(gzs,128,"%s:%s\n", TurfsCoords[zName],gZonesData[zoneid][ZoneOwner]);
strcat(string, gzs);
}
#pragma unused params
return ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Gzs", string, "Fechar", "");
}
Код:
(48030) : warning 213: tag mismatch (48030) : error 033: array must be indexed (variable "gZonesData") (48033) : error 017: undefined symbol "zoneid" (48025) : warning 204: symbol is assigned a value that is never used: "tmp" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Linhas do erro
[48030] if(gZonesData[ZoneOwner] == TEAM_NONE)
[48033]format(gzs,128,"%s:%s\n", TurfsCoords[zName],gZonesData[zoneid][ZoneOwner]);
[48025] new name[24],gzs[128],tmp [32],string[2048];