Hallo Breadfish
Ich habe ein Problem mit meinen Destroyhouse befehl bekomme diesse Fehlermeldung
Warning
(22494) : error 017: undefined symbol "str"
(22494) : error 017: undefined symbol "str"
(22494) : error 029: invalid expression, assumed zero
(22494) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Befehl
if(!strcmp(cmdtext, "/destroyhouse", true))
{
if(PlayerInfo[playerid][pAdmin] >= 7)
{
for(new i = 0; i<MAX_HOUSES; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
{
(22492) DestroyDynamicPickup(HouseInfo[i][hPick]);
(22493) DestroyDynamic3DTextLabel(HouseInfo[i][hLabel]);
(22494) format(str, sizeof (str), "/Houses/%d.ini", i);
(22495) fremove(str);
HouseInfo[i][hEntrx] = 0;
HouseInfo[i][hEntry] = 0;
HouseInfo[i][hEntrz] = 0;
HouseInfo[i][hIntx] = 0;
HouseInfo[i][hInty] = 0;
HouseInfo[i][hIntz] = 0;
HouseInfo[i][hOwned] = 0;
format(HouseInfo[i][hOwner], MAX_PLAYER_NAME, "-");
HouseInfo[i][hPrice] = 0;
HouseInfo[i][hEssen]=0;
HouseInfo[i][hIntid] = 0;
HouseInfo[i][hInt] = 0;
HouseInfo[i][hRentable] = 0;
HouseInfo[i][hRent] = 0;
HouseInfo[i][hLocked] = 0;
format(HouseInfo[i][hDescr], 50, "-");
SendClientMessage(playerid, COLOR_GREEN, "Haus gelöscht!");
}
}
}
return 1;
}
Bekomme es nicht entbuggt.