Quote:
Originally Posted by Bicentric
pawn Код:
if(strcmp(subcmd, "acheter", true) == 0) // Acheter une maison { if(PlayerInfo[playerid][pOHouse] == 0) new Float:oldposx, Float:oldposy, Float:oldposz; GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerPos(playerid, oldposx, oldposy, oldposz); print("Lancement Boucle 108"); for(new h = 0; h < totalhouses; h++) { if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0) { if(HouseInfo[h][hOwned] == 1) { SendClientMessage(playerid, COLOR_MAISON, "[Info] Cette maison n'est pas а vendre."); return 1; }
pay_tempPrice[playerid] = HouseInfo[h][hValue]; pay_tempArticle[playerid] = h; pay_tempType[playerid] = 3; pay_showDialog(playerid, HouseInfo[h][hValue]); break; } } print("Fin Boucle 108"); return 1; }
Error 1: Variables are case sensitive, it's defined as 'PlayerInfo' but you're using 'playerinfo', whenever you're using it make sure you use 'PlayerInfo'.
Error 2: Whenever you're using a statement such as 'if, else, while, for, do' etc, it's basically starting a new block of code so you don't need the ';' on the end of it.
|
I thank you and +rep you for your fast and very clear answer.