16.02.2012, 23:22
:P malz, esqueci de colocar 1 linha .-.
pawn Код:
new c = 0;
new pickupid,
string[128],
meguste[128],
Float:cCoords[3];
while(c < MAX_CASAS)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(DOF2_FileExists(string))
{
cCoords[0] = DOF2_GetFloat(string, "PosX");
cCoords[1] = DOF2_GetFloat(string, "PosY");
cCoords[2] = DOF2_GetFloat(string, "PosZ");
if(!DOF2_GetInt(string, "TDonoC"))
{
pickupid = CreatePickup(1273, 1, cCoords[0], cCoords[1], cCoords[2], -1);
DOF2_SetInt(string, "Id", pickupid);
/*new pp[30];
if(DOF2_GetInt(string,"CTrancada") == 1) format(pp, sizeof(pp), "Trancada");
if(DOF2_GetInt(string,"CTrancada") == 0) format(pp, sizeof(pp), "Destrancada");*/
format(meguste, sizeof(meguste), "Casa Nъmero [ %i ]", c);
Create3DTextLabel(meguste, 0xFFFFFFAA, cCoords[0], cCoords[1], cCoords[2]+0.75, 20.0, 0, 1);
}
else
{
if(DOF2_GetInt(string, "TDonoC") == 1)
{
pickupid = CreatePickup(1272, 1, cCoords[0], cCoords[1], cCoords[2], -1);
DOF2_SetInt(string, "Id", pickupid);
/*new pp[30];
if(DOF2_GetInt(string,"CTrancada") == 1) format(pp, sizeof(pp), "Trancada");
if(DOF2_GetInt(string,"CTrancada") == 0) format(pp, sizeof(pp), "Destrancada");*/
format(meguste, sizeof(meguste), "Casa Nъmero [ %i ]", c);
Create3DTextLabel(meguste, 0xFFFFFFAA, cCoords[0], cCoords[1], cCoords[2]+0.75, 20.0, 0, 1);
}
}
proximacasa++;
}
c++;
}