Zaključano

Error

Započeo dzko1223
pre 8 godina
469
pregleda
5
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
dzko1223
Rookie
pre 8 godina
Skripta koju koristim: Moja
Detaljan opis problema: error 010: invalid function or declaration, izbacuje mi error u prvoj linij! U pitanju je OnPlayerEnterCheckpoint
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 2102.3206,-2054.2891,13.5469))
    {
          DisablePlayerCheckpoint(playerid);
          SendClientMessage(playerid, -1, "Uspesno ste zavrsili kosenje trave.");
          GivePlayerMoney(playerid, 950);
          }
    }
Marinković™
Wheel Man
pre 8 godina
Koliko ja vidim fali ti jedna { na pocetku?
Freddyâ„¢
Made Man
pre 8 godina
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2102.3206,-2054.2891,13.5469))
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, -1, "Uspesno ste zavrsili kosenje trave.");
GivePlayerMoney(playerid, 950);
}


Probaj ovako da stavis ako nece posalji mi sve sa OnPlayerEnterCheckpoint-om
dzko1223
Rookie
pre 8 godina
@MrToretto Pokusao sam to i nije moglo
Evo sve od OnPlayerEnterCheckPoint
public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 780.0735,-1301.5417,13.5596))
{
    if(hKosac == 1)
        {
        hKosac = 2;
        SetPlayerCheckpoint(playerid, 779.6747,-1278.6173,13.5703, 4.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 779.6747,-1278.6173,13.5703))
{
    if(hKosac == 2)
    {
        hKosac = 3;
        SetPlayerCheckpoint(playerid, 779.5463,-1247.1888,13.5469, 4.0);
        }
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 779.5463,-1247.1888,13.5469))
{
    if(hKosac == 3)
    {
        hKosac = 4;
        SetPlayerCheckpoint(playerid, 766.7973,-1240.4302,13.5496, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 766.7973,-1240.4302,13.5496))
{
    if(hKosac == 4)
    {
        hKosac = 5;
        SetPlayerCheckpoint(playerid, 752.7291,-1240.0212,13.5553, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 752.7291,-1240.0212,13.5553))
{
    if(hKosac == 5)
    {
        hKosac = 6;
        SetPlayerCheckpoint(playerid, 737.6015,-1239.7026,13.5469, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 737.6015,-1239.7026,13.5469))
{
    if(hKosac == 6)
    {
        hKosac = 7;
        SetPlayerCheckpoint(playerid, 736.9990,-1253.7413,13.5541, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 736.9990,-1253.7413,13.5541))
{
    if(hKosac == 7)
    {
        hKosac = 8;
        SetPlayerCheckpoint(playerid, 754.4986,-1253.4285,13.5547, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 754.4986,-1253.4285,13.5547))
{
    if(hKosac == 8)
    {
        hKosac = 9;
        SetPlayerCheckpoint(playerid, 774.1608,-1253.4260,13.5624, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 774.1608,-1253.4260,13.5624))
{
    if(hKosac == 9)
    {
        hKosac = 10;
        SetPlayerCheckpoint(playerid, 774.5429,-1275.1030,13.5642, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 774.5429,-1275.1030,13.5642))
{
    if(hKosac == 10)
    {
        hKosac = 11;
        SetPlayerCheckpoint(playerid, 757.0410,-1274.7778,13.5564, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 757.0410,-1274.7778,13.5564))
{
    if(hKosac == 11)
    {
        hKosac = 12;
        SetPlayerCheckpoint(playerid, 739.4440,-1275.5637,13.5547, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 739.4440,-1275.5637,13.5547))
{
    if(hKosac == 12)
    {
        hKosac = 13;
        SetPlayerCheckpoint(playerid, 739.2107,-1285.3363,13.5654, 5.0);
    }
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 739.2107,-1285.3363,13.5654))
{
    if(hKosac == 13)
    {
        hKosac = 14;
        SetPlayerCheckpoint(playerid, 752.4673,-1286.3153,13.5656, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 752.4673,-1286.3153,13.5656))
{
    if(hKosac == 14)
    {
        hKosac = 15;
        SetPlayerCheckpoint(playerid, 772.3904,-1286.8257,13.5625, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 772.3904,-1286.8257,13.5625))
{
    if(hKosac == 15)
    {
        hKosac = 16;
        SetPlayerCheckpoint(playerid, 774.2715,-1295.3590,13.5625, 5.0);
}
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 774.2715,-1295.3590,13.5625))
{
    if(hKosac == 16)
    {
        hKosac = 17;
        SetPlayerCheckpoint(playerid, 757.8027,-1296.9027,13.5625, 5.0);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 757.8027,-1296.9027,13.5625))
{
    if(hKosac == 17)
    {
        hKosac = 18;
        SetPlayerCheckpoint(playerid, 737.3912,-1297.4670,13.5677, 5.0);
}
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 737.3912,-1297.4670,13.5677))
{
    if(hKosac == 18)
    {
        hKosac = 19;
        SetPlayerCheckpoint(playerid, 735.8610,-1273.3710,13.5534, 5.0);
}
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 735.8610,-1273.3710,13.5534))
{
    if(hKosac == 19)
    {
        hKosac = 20;
        SetPlayerCheckpoint(playerid, 745.0742,-1260.8752,13.5609, 5.0);
}
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 745.0742,-1260.8752,13.5609))
{
    if(hKosac == 20)
    {
        hKosac = 21;
        SetPlayerCheckpoint(playerid, 770.6127,-1260.5045,13.5680, 5.0);
}
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 770.6127,-1260.5045,13.5680))
{
    if(hKosac == 21)
    {
        hKosac = 22;
        SetPlayerCheckpoint(playerid, 779.7983,-1283.8798,13.5665, 5.0);
}
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 779.7983,-1283.8798,13.5665))
{
    if(hKosac == 22)
    {
        hKosac = 23;
        SetPlayerCheckpoint(playerid, 782.5673,-1298.7223,13.5611, 5.0);
}
}
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 782.5673,-1298.7223,13.5611))
{
        DisablePlayerCheckpoint(playerid);
        SendClientMessage(playerid, -1, "Uspesno ste zavrsili kosenje trave.");
        GivePlayerMoney(playerid, 950);
            hKosac = 0;
        }
    }
//============================================================================//
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 2102.3206,-2054.2891,13.5469))
    {
          DisablePlayerCheckpoint(playerid);
          SendClientMessage(playerid, -1, "Uspesno ste zavrsili kosenje trave.");
          GivePlayerMoney(playerid, 950);
          }
    }
dzko1223
Rookie
pre 8 godina
Hvala svima na pomoci sredio sam problem, ipak je bilo oko { } .... Moze LOCK

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava