Username: CSORINProblema întălnită: primesc aceste warninguri si nu stiu de ce Detalii despre problemă: /Ce ai încercat să faci înainte să postezi?: sa rezolvCod sursă (recomandat pastebin.com) : https://pastebin.com/NaDVt6puAlte detalii:
enter_apartament(playerid) {
new Float: Pos[3];
for(new i = 1; i < 25; i++) {
if(IsPlayerInRangeOfPoint(3.0, playerid, apartamentInfo[apPos][0], apartamentInfo[apPos][1], apartamentInfo[apPos][2])) { // Asta este linia 6413
if(apartamentInfo[apLock] == 1 && have_apartament(playerid) != i)
return SCM(playerid, -1, "Eroare: Nu poti deschide usa acestui apartament!");
}
}
for(new i = 0; i < 24; i++) {
GetDynamicObjectPos(apartament_door, Pos[0], Pos[1], Pos[2]);
if(IsPlayerInRangeOfPoint(3.0, playerid, Pos[0], Pos[1], Pos[2])) { // Asta este linia 6421
if(apartament_door_status == 0) {
if(i == 0 || i == 3 || i == 5 || i == 6 || i == 7 || i == 9 || i == 12 || i == 15 || i == 16 || i== 19 || i == 20 || i == 21) MoveDynamicObject(apartament_door, Pos[0], Pos[1], Pos[2], 10.0, 0.0, 0.0, -6.2800);
else MoveDynamicObject(apartament_door, Pos[0], Pos[1], Pos[2], 10.0, 0.0, 0.0, -188.4399);
apartament_door_status = 1;
}
else {
if(i == 0 || i == 3 || i == 5 || i == 6 || i == 7 || i == 9 || i == 12 || i == 15 || i == 16 || i== 19 || i == 20 || i == 21) MoveDynamicObject(apartament_door, Pos[0], Pos[1], Pos[2], 10.0, 0.0, 0.0, -100.000000);
else MoveDynamicObject(apartament_door, Pos[0], Pos[1], Pos[2], 10.0, 0.0, 0.0, 260.000000);
apartament_door_status = 0;
}
}
}
return 1;
}
CMD:buyapartament(playerid, params[]) {
new
string[128];
if(have_apartament(playerid) != -1)
return SCM(playerid, -1, "Ai deja un apartament!");
for(new i = 1; i < 25; i++) {
if(IsPlayerInRangeOfPoint(3.0, playerid, apartamentInfo[apPos][0], apartamentInfo[apPos][1], apartamentInfo[apPos][2])) { // Asta este linia 6541
if(PlayerInfo[playerid][pLevel] < 7)
return SCM(playerid, COLOR_GREY, "Ai nevoie de level 7 pentru a cumpara un apartament.");
if(apartamentInfo[apUser] != -1)
return SCM(playerid, -1, "Acest apartament este cumparat!");
if(GetPlayerCash(playerid) < apartamentInfo[apValue])
return SCM(playerid, -1, "Nu ai suma necesara pentru a cumpara acest apartament!");
apartamentInfo[apUser] = PlayerInfo[playerid][pSQLID];
format(apartamentInfo[apOwner], 32, GetName(playerid));
update_apartament_int(i, "Value", 0);
update_apartament_int(i, "UserID", apartamentInfo[apUser]);
update_apartament_str(i, "Owner", GetName(playerid));
GivePlayerCash(playerid, -apartamentInfo[apValue]);
format(string, sizeof(string), "Felicitari! Ai cumparat acest apartament pentru suma de $%s.", FormatNumber(apartamentInfo[apValue]));
SCM(playerid, COLOR_YELLOW, string);
apartamentInfo[apValue] = 0;
refresh_label(i);
}
}
return 1;
}
C:\Users\SORIN\Desktop\server\gamemodes\gm.pwn(6413) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
C:\Users\SORIN\Desktop\server\gamemodes\gm.pwn(6421) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
C:\Users\SORIN\Desktop\server\gamemodes\gm.pwn(6541) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
Pawn compiler 3.10.7 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
[Finished in 3.8s]