[pomoc] Kapija /granica

Započeo McAfee, April 28, 2011, 15:56:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

   
Skripta koju koristim:GTA:RP
Detaljan opis problema: Ovako. Pravio sam neku granicu i krenuo sam da ubacujem kapije i kad ubacim jednu kapiju sa tom komandom ono bude uredu , ali ja imam dve kapije. I sad ubacim i drugu kapiju else if ali mi javlja problem. Kako to da resim...
Dio skripte:
if (strcmp("/granica", cmdtext, true, 10) == 0)
{
  if(IsPlayerConnected(playerid))
{
    if (PlayerToPoint(15, playerid,1803.8884,804.2925,11.0493))
    {
                    MoveObject(granica,1783.8715820313, 806.47485351563, 0.080672264099121, 2.00);
        SetTimer("granicazatvori", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE, "Otvaras Granicu, bice zatvorena automatski!");
    }
    else if PlayerToPoint(15, playerid,1803.8884,804.2925,11.0493))
            {
                    MoveObject(granica1,1789.3750,804.6755,11.0477, 2.00);
          SetTimer("granicazatvori1", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE, "Otvaras Granicu, bice zatvorena automatski!");
}
}
}




a izadje mi ovo:
C:\Documents and Settings\Filip\My Documents\Downloads\GTARP\gamemodes\Balkan life\gtarp1.pwn(12864) : error 001: expected token: "*then", but found ")"
C:\Documents and Settings\Filip\My Documents\Downloads\GTARP\gamemodes\Balkan life\gtarp1.pwn(12864) : error 029: invalid expression, assumed zero



Znam da je to neka greska u znaku, ali ne razumem u kom sve sam proverio...
Poslednja Izmena: April 28, 2011, 15:57:40 POSLE PODNE od McAfee
~~~ProSolution Roleplay Samp Server
ProSolution RolePlay Nas ip je: 193.192.59.107:7783

~~~ProSolution TeamSpeak 3~~~
iNfamous Team Speak 3 Server...  64.31.59.188:9999

~~~ProSolution Roleplay Forum
ProSolution RolePlay Nas forum je:

if (strcmp("/granica", cmdtext, true, 10) == 0)
{
  if(IsPlayerConnected(playerid))
{
    if (PlayerToPoint(15, playerid,1803.8884,804.2925,11.0493))
    {
                    MoveObject(granica,1783.8715820313, 806.47485351563, 0.080672264099121, 2.00);
        SetTimer("granicazatvori", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE, "Otvaras Granicu, bice zatvorena automatski!");
    }
    else if PlayerToPoint(15, playerid,1803.8884,804.2925,11.0493)
            {
                    MoveObject(granica1,1789.3750,804.6755,11.0477, 2.00);
          SetTimer("granicazatvori1", 5000, 0);
        SendClientMessage(playerid, COLOR_WHITE, "Otvaras Granicu, bice zatvorena automatski!");
}
}
}

C:\Documents and Settings\Filip\My Documents\Downloads\GTARP\gamemodes\Balkan life\gtarp1.pwn(12865) : error 001: expected token: "*then", but found "{"
~~~ProSolution Roleplay Samp Server
ProSolution RolePlay Nas ip je: 193.192.59.107:7783

~~~ProSolution TeamSpeak 3~~~
iNfamous Team Speak 3 Server...  64.31.59.188:9999

~~~ProSolution Roleplay Forum
ProSolution RolePlay Nas forum je:

if (strcmp("/granica", cmdtext, true, 10) == 0) 
   { 
        if(IsPlayerConnected(playerid)) 
      { 
          if (PlayerToPoint(15, playerid,1803.8884,804.2925,11.0493)) 
          { 
                       MoveObject(granica,1783.8715820313, 806.47485351563, 0.080672264099121, 2.00); 
              SetTimer("granicazatvori", 5000, 0); 
              SendClientMessage(playerid, COLOR_WHITE, "Otvaras Granicu, bice zatvorena automatski!"); 
          } 
            else if (PlayerToPoint(15, playerid,1803.8884,804.2925,11.0493))
                  { 
                       MoveObject(granica1,1789.3750,804.6755,11.0477, 2.00); 
                 SetTimer("granicazatvori1", 5000, 0); 
                 SendClientMessage(playerid, COLOR_WHITE, "Otvaras Granicu, bice zatvorena automatski!"); 
         } 
      } 
   }