Pomoc = erroer

Započeo Ante_Dracar aka Lopa, Jul 08, 2010, 20:20:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

evo ovako isao sam naprvaviti ogradu sa automatskom zatvaranjem ali imam 3 erroera,ovo pogledajte...




C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10763) : error 017: undefined symbol "ZELENO"
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10766) : error 029: invalid expression, assumed zero
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10766) : error 004: function "zatvori" is not implemented
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10773) : warning 225: unreachable code
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.



new kapija;

forward zatvori();

kapija = CreateObject(968, 520.58551025391, 471.8798828125, 18.9296875, 0, 90, 215.09606933594);

//----------------------------------------------
  if (strcmp("/otvori", cmdtext, true, 10) == 0)
  {
      MoveObject(kapija,1588.490,-1637.927,6.765, 2.00);
      SetTimer("zatvori", 5000, 0);
      SendClientMessage(playerid,ZELENO,"Otvaras kapiju, bice zatvorena automacki...");
      return 1;
  }
  public zatvori()
  {
      MoveObject(kapija,1539.602,-1627.611,15.156, 2.00);
      return 1;
  }




radjeno je po ovome TUT-u = http://balkan-samp.com/forum/index.php?topic=7470.0,vidite ovo kasto je na tom TUT-u...
public OnGameModeInit()
{
    kapija = CreateObject(980,1539.602,-1627.611,15.156,0.0,0.0,90.000); // Pokretna
    return 1;
}

ja nisam stavio tako ja sam samo stavia ovako...
kapija = CreateObject(968, 520.58551025391, 471.8798828125, 18.9296875, 0, 90, 215.09606933594);












Poslednja Izmena: Jul 08, 2010, 20:21:25 POSLE PODNE od [SA] Ante_Dracar

Ispravite me ako nisam u pravu  :D

C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10763) : error 017: undefined symbol "ZELENO"
#define ZELENO 0x33FF00AA

C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10766) : error 004: function "zatvori" is not implemented
To stavi na dno skripte, ovdje se vidi da ti je drugi "Public" u public OnPlayerCommandText

ovaj prvi ti je tocan a za drugi nisam skuzia sta zelis reci...

C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10768) : error 029: invalid expression, assumed zero
C:\Users\Bill Gates\Desktop\CroMafia\gamemodes\cmr.pwn(10768) : error 004: function "zatvori" is not implemented

black_dota

Alo sto otvaras temu kad si vec napisao na onom tut  ??? ??? ??? ???