[POMOC]

Započeo Scaletta
26. Jul 2012.
324
pregleda
4
postova
Scaletta
2
Street Runner
26. Jul 2012.
Ovako trebam pomoc kad dodam kapiju na kuci dobijem 26 errora a kad ju maknem nema ni 1 warn ni nista evo kod (sa drugog foruma sam nasao) (da i makeo sam ove kao komentare sve i opet nece)
#include 

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

new vrata;                       

sad morate staviti pod game mode init :     

public  OnGameModeInit()
{
Createobject(id,x,y,z,xr,yr,zr);      <------------- Ovako napisete ako zelite dodati neki objekt koji nece imat nikakcu funkciju , ali u ovoj skripti nas to trenutno ne zanima a ova slova su pozicije , tu ide kod
vrata = Createobject(id,x,y,z,xr,yr,zr);  <-------------Prvo ide Ime objekta kojeg zelite pomaknuti , gore smo napisali new vrata; , znaci ovdje isto mora pisati vrata
return 1;
}

sada je objekt napravljen i postavljen na mjesto , jos moramo dodati funkciju i komandu

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)    <--------- di pise mycommand  tu upisite svoju komandu , npr  otvorivrata
{
MoveObject(vrata,x,y,z,brzina);   <-------- di pise vrata to je ime objekta , objasnit cu vam poslje kako lako dobit tocne komande di da se objekt pomakne , brzinu pisete npr 5.6 , 6.7 i tako
return 1;
}
return 0;        <--------  rerutn 0; i ovaj znak dolje ne SE STAVLJAJU SAMO NA KRAJU SKRIPTE , jer mozete vi jos ispod ovog za pomicanje objekta naslagat 100 takvih , zato ovo ide na kraju
}

to je to , lagano a? :d

TUT  KAKO DOBIT KORDINATE ZA MOVEOBJEC NA LAGAN NACIN

Onu mapu koju imate spremljenu u maps u Map editoru , kopirate ju i promjenite joj ime
Udete u Map editor i postavite npr da su vrata zatvorena a ne otvorena
I kad otvorite tu mapu u deluxu imate gotove codove za MoveObject i td xD

Ovo sam ja sam napiso , i mislim da bi svi trebali skuzit a evo primjer jedne skripte za vrata

#include

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

new vrata;                     

public  OnGameModeInit()
{
Createobject(id,x,y,z,xr,yr,zr);   
vrata = Createobject(id,x,y,z,xr,yr,zr); 
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/mycommand", cmdtext, true, 10) == 0) 
  {
MoveObject(vrata,x,y,z,brzina);   
      return 1;
  }
  return 0;       
}
Deleted User
Obrisan korisnik
26. Jul 2012.
vjerovatno ti zagrada neka fali cim je 26 errora....
Scaletta
2
Street Runner
26. Jul 2012.
Prije nego ubacim ovu kapiju sve normalno 0 warn znaci nista ali kad compile ovo mi izadje
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(2610) : error 004: function "SafeJBC_GivePlayerMoney" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(2635) : error 004: function "SafeJBC_GivePlayerMoney" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(2664) : error 004: function "SafeJBC_ResetPlayerWeapons" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(2665) : error 004: function "SafeJBC_GivePlayerWeapon" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(2688) : error 004: function "SafeJBC_ResetPlayerWeapons" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3203) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3207) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3218) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3230) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3234) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3238) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3242) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3246) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3250) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3254) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3258) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3262) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3266) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3278) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3282) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3286) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3290) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3294) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3306) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3310) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Josip\Desktop\Balkan\gamemodes\balkan.pwn(3314) : error 004: function "PlayerToPoint" is not implemented

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

26 Errors.
Scaletta
2
Street Runner
27. Jul 2012.
Rijesio sam Moze LOCKKKKKKKKKK 🙂

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha