Szia nekem minden sikerül az a bajom amikor beirom a nyitást akor egy db kapu elmegy egy meg ott marad lécc segítsetek nekem pls elöre is köszönöm
ja szntem is jó eddig csak ezzel a leírással értettem meg...
Mi nem értheto rajta..?
____________________________________HIBA:C:\\dexter\\[HUN]winter Christmas RPG\\saját filterscripts\\filterscripts\\lift.pwn(1) : fatal error 100: cannot read from file: \"\"Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.___________________________________________________ #include#define FILTERSCRIPT#if defined FILTERSCRIPTnew lift;public OnFilterScriptInit(){ lift = CreateObject(3051, 1568.873046875, -1334.9428710938, 16.846578598022, 0, 0, 290); return 1;}public OnFilterScriptInit(){ lift = CreateObject(3051, 1548.5313720703, -1363.4724121094, 326.57315063477, 0, 0, 315.9951171875);); return 1;}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext, \"/lift-fel\", true) == 0) { MoveObject(lift, 1548.5313720703, -1363.4724121094, 326.57315063477, 2.0); return 1; } if(strcmp(cmdtext, \"/lift-le\", true) == 0) { MoveObject(lift,1568.873046875, -1334.9428710938, 16.846578598022, 2.0); return 1; } return 0;}
Az a hiba, hogy a \"kapu\" változót több helyen használtad.Minden egyes Objecthez külön változó kell![pawn]#include <a_samp>new kapu1, kapu2, kapu3, kapu4, kapu5, kapu6, kapu7;public OnFilterScriptInit(){kapu1 = CreateObject(5340, 3647.5949707031, 2786.1169433594, 37.65100479126, 0, 0, 0);kapu2 = CreateObject(5340, 3647.5654296875, 2779.6669921875, 37.456157684326, 0, 0, 0);kapu3 = CreateObject(5340, 3647.4604492188, 2774.0539550781, 37.463085174561, 0, 0, 0);kapu4 = CreateObject(5340, 3647.4477539063, 2767.2958984375, 37.36408996582, 0, 0, 0);kapu5 = CreateObject(5340, 3647.3498535156, 2760.6267089844, 37.482051849365, 0, 0, 0);kapu6 = CreateObject(5340, 3647.2380371094, 2753.8176269531, 37.655326843262, 0, 0, 0);kapu7 = CreateObject(5340, 3647.1823730469, 2749.4145507813, 37.660953521729, 0, 0, 0); return 1;}public OnPlayerCommandText(playerid, cmdtext [ ] ){ if(strcmp(cmdtext, \"/nyit\", true) == 0) { MoveObject(kapu1, 3647.5949707031, 2786.1169433594, 37.65100479126, 3); MoveObject(kapu2, 3647.5654296875, 2779.6669921875, 37.456157684326, 3); MoveObject(kapu3, 3647.4604492188, 2774.0539550781, 37.463085174561, 3); MoveObject(kapu4, 3647.4477539063, 2767.2958984375, 37.36408996582, 3); MoveObject(kapu5, 3647.3498535156, 2760.6267089844, 37.482051849365, 3); MoveObject(kapu6, 3647.2380371094, 2753.8176269531, 37.655326843262, 3); MoveObject(kapu7, 3647.1823730469, 2749.4145507813, 37.660953521729, 3); return 1; } if(strcmp(cmdtext, \"/zár\", true) == 0) { MoveObject(kapu1, 3647.5947265625, 2786.1162109375, 43.65100479126, 3); MoveObject(kapu2, 3647.5654296875, 2779.6669921875, 43.706157684326, 3); MoveObject(kapu3, 3647.4599609375, 2774.0537109375, 43.713085174561, 3); MoveObject(kapu4, 3647.447265625, 2767.2958984375, 43.61408996582, 3); MoveObject(kapu5, 3647.349609375, 2760.6259765625, 43.732051849365, 3); MoveObject(kapu6, 3647.2373046875, 2753.8173828125, 43.905326843262, 3); MoveObject(kapu7, 3647.1823730469, 2749.4145507813, 37.660953521729, 3); return 1; } return 0;}[/pawn]