PDA

View Full Version : /fill problem ?


georgian1
10/08/2014, 10:48 AM
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

georgian1
10/08/2014, 11:30 AM
bump

georgian1
11/08/2014, 05:47 AM
any solutions ?!

dirigent00
11/08/2014, 05:51 AM
EDIT: My bad, haven't read.

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

georgian1
11/08/2014, 08:08 AM
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.

dirigent00
11/08/2014, 09:44 AM
Does it say Unknown command or what?
Also try to debug it while on host, and see what happening.

georgian1
11/08/2014, 10:35 AM
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.

georgian1
12/08/2014, 01:49 PM
BUMP

georgian1
02/09/2014, 09:05 AM
guys help me

georgian1
02/09/2014, 09:28 PM
why no one helps me.

georgian1
04/09/2014, 11:20 AM
still no help,ty