Compile error
#4

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.
Reply


Messages In This Thread
Compile error - by Kethrios - 20.11.2012, 17:13
Re: Compile error - by Glad2BeHere - 20.11.2012, 17:15
Re: Compile error - by Bicentric - 20.11.2012, 17:24
Re : Re: Compile error - by Kethrios - 20.11.2012, 17:49

Forum Jump:


Users browsing this thread: 3 Guest(s)