[pomoc]erorri

Započeo Poslednji Don, Oktobar 27, 2011, 12:48:06 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

E ovako radio sam posao Cistaca ulica i napravio
RandomMoney za CP-ove, i tu mi salje 2 erorra

Linije:
new RandomMoney2[] [4] =
{
    {30},
{40},
{50},
{60},
};
new rmoney2 = random(sizeof(RandomMoney2));
if(PlayerInfo[playerid][pCistac] > 0)
    {
        if(IsPlayerInVehicle(playerid, 652) || IsPlayerInVehicle(playerid, 651)  || IsPlayerInVehicle(playerid, 650) || IsPlayerInVehicle(playerid, 649)  || IsPlayerInVehicle(playerid, 648)  || IsPlayerInVehicle(playerid, 647)  || IsPlayerInVehicle(playerid, 646) || IsPlayerInVehicle(playerid, 645) || IsPlayerInVehicle(playerid, 644) || IsPlayerInVehicle(playerid, 643) || IsPlayerInVehicle(playerid, 642))
{
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 1609.5571,-1869.8392,13.3828))//cp1
        {
        if(PlayerInfo[playerid][pCistac] == 1)
            {
                    PlayerInfo[playerid][pCistac] = 2;//
                SetPlayerCheckpoint(playerid,1433.9713,-1870.0341,13.3828,5);//
                GivePlayerMoney(playerid, RandomMoney2[rmoney2][0]);
}
            }
}

Tu je RandomMoney i Prvi CP, ima ukupno 26 CP-ova....
Linije:
C:\Documents and Settings\Nikola\Desktop\Balkan Mafia Community\Balkan Mafia Skriptanje\BM v1.0.2\Balkan Mafia GM\gamemodes\BM.pwn(4977) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\Balkan Mafia Community\Balkan Mafia Skriptanje\BM v1.0.2\Balkan Mafia GM\gamemodes\BM.pwn(4977) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.



Kad bih ponovo mogao da biram...al' nemozes da biras.
Zajebes jedan minus i ode ceo zadatak u kurac. Ceo fazon brate, nema druge sanse.


new Float:RandomMoney2[] [4] =
{
{30},
{40},
{50},
{60}
};


ovako ti treba izgledat...

Rijesio sam...float nije potrebno xD



Kad bih ponovo mogao da biram...al' nemozes da biras.
Zajebes jedan minus i ode ceo zadatak u kurac. Ceo fazon brate, nema druge sanse.