/fill problem ?
#1

hi guys i have server and /fill command is using streamer > createdynamicsphree there is command

Код:
if(!strcmp(cmd,"/fill",true))
	{
		if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,CGRAY,"Unda Ijde Manqanashi.");
		new vehicleid = GetPlayerVehicleID(playerid);
		//if(GetEngineStats(vehicleid) == 1) return SendClientMessage(playerid,CGRAY,"Sawvavis Shevseba Shesadzlebelia Mxolod Gatishuli Dzravit");
		new modelid = GetVehicleModel(vehicleid) - 400;
		if(!gTransport[modelid][trFuelable]) return SendClientMessage(playerid,CGRAY,"Am Manqanas Ar gaachnia benzinis baki");
		new fillingid = -1;
		for(new i;i<FILLING_COUNT;i++)
		{
			if(!IsPlayerInDynamicArea(playerid,gAreas[arFuel][i])) continue;	
			else fillingid = i;
		}
		if(fillingid == -1) return SendClientMessage(playerid,CGRAY,"Unda Iyo Sadgurtan");
		ShowPlayerDialog(playerid,dFillBuy,0,"{1B8E06}Benzinis Gadaxda","Gindat Namdvilad Benzinis Yidva 700$ Ad?","Ki","Ara");
	}
this code works perfectly with empty server i mean i have HOST server and i have VPS in vps it works but in host its not i mean DynamicSphree not showing in map in vps it works any solutions? sry for my english

Код:
gAreas[arFuel][0] = CreateDynamicSphere(2217.3040,-1146.6182,1025.7969,1.0);
Код:
case dFillBuy:
		{
		    if(!response) return true;
		    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,CGRAY,"Tqven Unda Iyot Avtomobilshi.");
			new vehicleid = GetPlayerVehicleID(playerid);
			//if(GetEngineStat(vehicleid) == 1) return SendClientMessage(playerid,CGRAY,"Sawvavis Shevseba Shesadzlebelia Mxolod Gatishuli Dzravit");
			new modelid = GetVehicleModel(vehicleid) - 400;
			if(!gTransport[modelid][trFuelable]) return SendClientMessage(playerid,CGRAY,"Tqvens Avtmobils Ar Aqvs Sawvavis Baki");
			new fillingid = -1;
			for(new i;i<FILLING_COUNT;i++)
			{
				if(!IsPlayerInDynamicArea(playerid,gAreas[arFuel][i])) continue;
				else fillingid = i;
			}
			if(fillingid == -1) return SendClientMessage(playerid,CGRAY,"Tqven Unda Iyot Benzin Gasamart Sadgurze");
			if(GetPlayerMoneyEx(playerid) < 700) return SendClientMessage(playerid,CGRAY,"Tqven Ar Gaqvt Sakmarisi Tanxa (700$)");
			TransferMoney(playerid,-1,700);
			gVehicles[vehicleid-1][vFuel] = 100;
			SendClientMessage(playerid,CGREEN,"Sawvavi Sheivso, Shegidzliat Waxvidet");
		}
i checked and every file which are in vps are the same
Reply
#2

bump
Reply
#3

any solutions ?!
Reply
#4

EDIT: My bad, haven't read.

Could you explain us, how is it not working? I mean, command or?
Reply
#5

yes its command look up everything is working how i know its using streamer plugin i upated/recomplied but same problem,works on vps but on host where i have 60+ players its not.
Reply
#6

Does it say Unknown command or what?
Also try to debug it while on host, and see what happening.
Reply
#7

Quote:
Originally Posted by dirigent00
Посмотреть сообщение
Does it say Unknown command or what?
Also try to debug it while on host, and see what happening.
can you read my problem again ?

command works only in vps where is atleast 5 players /fill works and on map you have icon in gasoline in hosting server there is not icon! /fill command says that you must be at gas station read codes.
Reply
#8

BUMP
Reply
#9

guys help me
Reply
#10

why no one helps me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)