[Pomoc] Race

Započeo monkeypantzz, Mart 12, 2011, 17:55:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Evo ovako,posto dugo nisam znao da napravim race a silno sam zeleo odlucio sam da pokusam,a to sam uradio tako sto sam gledao iz ovog tuta: http://balkan-samp.com/forum/index.php?topic=18168.0

Na moju zalost,izasli su mi sledeci errori:

C:\Documents and Settings\xxx\Desktop\xxx\gamemodes\AE.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\xxx\Desktop\xxx\gamemodes\AE.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\xxx\Desktop\xxx\gamemodes\AE.pwn(128) : warning 215: expression has no effect
C:\Documents and Settings\xxx\Desktop\xxx\gamemodes\AE.pwn(128) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\xxx\Desktop\xxx\gamemodes\AE.pwn(128) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


A evo sta sam radio:

public OnPlayerEnterCheckpoint(playerid)
{
if(GetPVarInt(playerid,"Trka") >= 2)
{
    if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681))//Kada stigne na CheckPoint 1
    {
    if(GetPVarInt(playerid,"Trka") == 2)
        {
            SetPVarInt(playerid, "Trka", 3);
            SetPlayerRaceCheckpoint(playerid, tip, 1852.0031,-2494.5098,13.2817,90.1373,116,1, radius2); // Postavlja CheckPoint 2
         }
    }
    if(PlayerToPoint(radius2, playerid, 1852.0031,-2494.5098,13.2817))//Kada stigne na CheckPoint 2
{
if(GetPVarInt(playerid,"Trka") == 2)
{
      SetPVarInt(playerid, "Trka", 4);
            SetPlayerRaceCheckpoint(playerid, tip, 1536.7753,-2493.3391,13.2818,93.2181,116,1, radius3);
        }
     }
     if(PlayerToPoint(radius3, playerid, 1536.7753,-2493.3391,13.2818))//Kada stigne na poslednji CheckPoint
      {
         if(GetPVarInt(playerid,"Trka") == 3)
         {
          DisablePlayerRaceCheckpoint(playerid);
            new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            for(new i = 0; i < MAX_PLAYERS; i++)
              {
                if(IsPlayerConnected(i))
                       {
                      if(GetPVarInt(playerid,"Trka") > 0)
                           {
                             format(string, sizeof(string), "*Aero LS 402 Race | Cilj: %s",sendername);
                             SendClientMessage(i,0x9ACD32AA, string);
                           }
                       }
              }
         }
      }
}
    return 1;
}


Zna li neko u cemu je problem?


No matter how hard it is, how tough life gets, never ever give up. If you do, you never will know how close you were to making it.


DoN

*

Postaj liniju 128
Najbolji i najpovoljniji Game i Web hosting na balkanu
Ako želiš Game ili Web host od Game Hr-a obrati mi se na PM
Trenutno radim na projektu RG:RP..
Neodgovaram na bezveze PM-ove..
Royall Gaming RolePlay

Najbolji citati
Citat: Nikola_Hawks poslato Mart 23, 2011, 19:25:24 POSLE PODNE
Skripta koju koristim:GTA RP Od 0

if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681))//Kada stigne na CheckPoint 1

:)


No matter how hard it is, how tough life gets, never ever give up. If you do, you never will know how close you were to making it.


makelele

stavi ovo mjesto toga
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
i meni je to bilo i stavio ovo i ok

Citat: Djea poslato Mart 12, 2011, 18:01:16 POSLE PODNE
if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681))//Kada stigne na CheckPoint 1

:)

if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681))//Kada stigne na CheckPoint 1

Radius , dodaj neki broj :S
To ti je kao velicina kruga
Poslednja Izmena: Mart 12, 2011, 18:05:46 POSLE PODNE od elDar.

Citat: fixman|AND1| poslato Mart 12, 2011, 18:04:46 POSLE PODNE
stavi ovo mjesto toga
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
i meni je to bilo i stavio ovo i ok

Probao,nece :/ Mislim da je problem sa zagradama :/
Citat: elDar. poslato Mart 12, 2011, 18:05:15 POSLE PODNE
Citat: Djea poslato Mart 12, 2011, 18:01:16 POSLE PODNE
if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681))//Kada stigne na CheckPoint 1

:)

if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681))//Kada stigne na CheckPoint 1

Radius , dodaj neki broj :S
To ti je kao velicina kruga

Stavio sam i 1 i 155 i nece  :P


No matter how hard it is, how tough life gets, never ever give up. If you do, you never will know how close you were to making it.


Citat: Djea poslato Mart 12, 2011, 18:11:40 POSLE PODNE
Citat: fixman|AND1| poslato Mart 12, 2011, 18:04:46 POSLE PODNE
stavi ovo mjesto toga
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
i meni je to bilo i stavio ovo i ok

Probao,nece :/ Mislim da je problem sa zagradama :/
Citat: elDar. poslato Mart 12, 2011, 18:05:15 POSLE PODNE
Citat: Djea poslato Mart 12, 2011, 18:01:16 POSLE PODNE
if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681))//Kada stigne na CheckPoint 1

:)

if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681))//Kada stigne na CheckPoint 1

Radius , dodaj neki broj :S
To ti je kao velicina kruga

Stavio sam i 1 i 155 i nece  :P
De stavi radius 3, i daj mi posalji te errore , sta vec dobijes.

Iste dobijam bez obzira sta stavim:


C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : warning 215: expression has no effect
C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Jos neko misli da je problem u zagradama? :/


No matter how hard it is, how tough life gets, never ever give up. If you do, you never will know how close you were to making it.


dragan12

Probaj ovako da stavis:
if(PlayerToPoint(radius, playerid, 2033.0308,-2493.8889,13.2681));//Kada stigne na CheckPoint 1
Stavi za radius 5.0
Evo ovde imas objasnjeno sta koji error znaci meni je tako pomoagalo pre.
http://forum.sa-mp.com/showthread.php?t=185407
Poslednja Izmena: Mart 12, 2011, 20:45:27 POSLE PODNE od Gagi_Corleone

Citat: Djea poslato Mart 12, 2011, 18:15:18 POSLE PODNE
Iste dobijam bez obzira sta stavim:


C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : warning 215: expression has no effect
C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Nikola\Desktop\MOD od 0\gamemodes\AE.pwn(128) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Jos neko misli da je problem u zagradama? :/

Da u zagradama je, stavi ispod liniju 128 tri } zaredom.


Linija
                 }
          }
    }