error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes123\Desktop\SVE\BL\gamemodes\BL.pwn(9205) : warning 215: expression has no effect
C:\Documents and Settings\Mirnes123\Desktop\SVE\BL\gamemodes\BL.pwn(9205) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Mirnes123\Desktop\SVE\BL\gamemodes\BL.pwn(9205) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mirnes123\Desktop\SVE\BL\gamemodes\BL.pwn(9205) : fatal error 107: too many error messages on one line
Linija 9205:
if(PlayerInfo[playerid][pGrobarRuta] > 0)
Msm nije komanda vec ovo:
if(PlayerInfo[playerid][pGrobarRuta] > 0);
{
if(PlayerToPoint(5.0, playerid,2867.5269,-1958.4397,11.1547)) //ovdje dodajte vase kooridnate i radius prvog cp-a
{
if(PlayerInfo[playerid][pGrobarRuta] == 1)
{
PlayerInfo[playerid][pGrobarRuta] = 2;
SetPlayerCheckpoint(playerid,X,Y,Z, 5.0);
}
}
if(PlayerToPoint(5.0, playerid,1652.2797,-1419.1743,13.5469))//koordinate drugog cp-a
{
if(PlayerInfo[playerid][pGrobarRuta] == 2)//
{
SendClientMessage(playerid,COLOR_YELLOW2,"Odradili ste posao uspjesno");
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_YELLOW2,"Zaradili ste: 650$");
GivePlayerMoney(playerid, 650);
PlayerInfo[playerid][pGrobarRuta] = 0;
}
}
}
Ajd citaj pravila.
NIsam moderator ali neko vas mora uputit kad oni nerade svoj posao.
Dodao si ; poslije if(PlayerInfo[playerid][pGrobarRuta] > 0), evo ispravljeno.
if(PlayerInfo[playerid][pGrobarRuta] > 0)
{
if(PlayerToPoint(5.0, playerid,2867.5269,-1958.4397,11.1547)) //ovdje dodajte vase kooridnate i radius prvog cp-a
{
if(PlayerInfo[playerid][pGrobarRuta] == 1)
{
PlayerInfo[playerid][pGrobarRuta] = 2;
SetPlayerCheckpoint(playerid,X,Y,Z, 5.0);
}
}
if(PlayerToPoint(5.0, playerid,1652.2797,-1419.1743,13.5469))//koordinate drugog cp-a
{
if(PlayerInfo[playerid][pGrobarRuta] == 2)//
{
SendClientMessage(playerid,COLOR_YELLOW2,"Odradili ste posao uspjesno");
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_YELLOW2,"Zaradili ste: 650$");
GivePlayerMoney(playerid, 650);
PlayerInfo[playerid][pGrobarRuta] = 0;
}
}
}
a ti C++, ako nećeÅ¡ pomoći, ne priÄaj puno, ili pomozi, ili obiÄ'i, nisi moderator, neka oni rade svoja posla, ti svoj.
Nece..
Jesi dobro kopirao?
if(PlayerInfo[playerid][pGrobarRuta] > 0)
{
if(PlayerToPoint(5.0, playerid,2867.5269,-1958.4397,11.1547))
{
if(PlayerInfo[playerid][pGrobarRuta] == 1)
{
PlayerInfo[playerid][pGrobarRuta] = 2;
SetPlayerCheckpoint(playerid,X,Y,Z, 5.0);
}
}
if(PlayerToPoint(5.0, playerid,1652.2797,-1419.1743,13.5469))
{
if(PlayerInfo[playerid][pGrobarRuta] == 2)
{
SendClientMessage(playerid,COLOR_YELLOW2,"Odradili ste posao uspjesno");
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_YELLOW2,"Zaradili ste: 650$");
GivePlayerMoney(playerid, 650);
PlayerInfo[playerid][pGrobarRuta] = 0;
}
}
}
citajte pravila svi