Filterscript compile but commands not work
#1

I compile a filterscript with 0 error but comands not work why?I don't know.Something is wrong but why?Pls help me.

this is filterscript: http://www.hotfiles.ro/download/jailw.rar/1133989
and this is comands :


public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256+1];
new idx;
cmd = strtok(cmdtext, idx);

if(!strcmp(cmdtext, "/opencells", true)) // editat de camataru
{
if(PlayerInfo[playerid][pMember] == 3|| PlayerInfo[playerid][pLeader] == 3)
{
MoveObject(cell0,1827.80004883+1.25,-1729.19995117,5202.79980469,0.50);
MoveObject(cell1,1831.00000000+1.25,-1729.19995117,5202.79980469,0.50);
MoveObject(cell2,1834.19995117+1.25,-1729.19995117,5202.79980469,0.50);
MoveObject(cell3,1837.40002441+1.25,-1729.19995117,5202.79980469,0.50);
MoveObject(cell4,1840.59997559+1.25,-1729.19995117,5202.79980469,0.50);
MoveObject(cell5,1827.80004883+1.25,-1729.19995117,5206.39990234,0.50);
MoveObject(cell6,1831.00000000+1.25,-1729.19995117,5206.39990234,0.50);
MoveObject(cell7,1834.19995117+1.25,-1729.19995117,5206.39990234,0.50);
MoveObject(cell8,1837.40002441+1.25,-1729.19995117,5206.39990234,0.50);
MoveObject(cell9,1840.59997559+1.25,-1729.19995117,5206.39990234,0.50);
MoveObject(cell10,1843.80004883+1.25,-1729.19995117,5206.39990234,0.50);
MoveObject(cell11,1843.80004883+1.25,-1729.19995117,5202.79980469,0.50);
MoveObject(cell12,1843.80004883+1.25,-1729.19995117,5209.89990234,0.50);
MoveObject(cell13,1840.59997559+1.25,-1729.19995117,5209.89990234,0.50);
MoveObject(cell14,1837.40002441+1.25,-1729.19995117,5209.89990234,0.50);
MoveObject(cell15,1834.19995117+1.25,-1729.19995117,5209.89990234,0.50);
MoveObject(cell16,1831.00000000+1.25,-1729.19995117,5209.89990234,0.50);
MoveObject(cell17,1827.80004883+1.25,-1729.19995117,5209.89990234,0.50);
MoveObject(cell18,1827.80004883+1.25,-1714.30004883,5202.79980469,0.50);
MoveObject(cell19,1831.00000000+1.25,-1714.30004883,5202.79980469,0.50);
MoveObject(cell20,1834.19995117+1.25,-1714.30004883,5202.79980469,0.50);
MoveObject(cell21,1837.40002441+1.25,-1714.30004883,5202.79980469,0.50);
MoveObject(cell22,1840.59997559+1.25,-1714.30004883,5202.79980469,0.50);
MoveObject(cell23,1843.80004883+1.25,-1714.30004883,5202.79980469,0.50);
MoveObject(cell24,1843.80004883+1.25,-1714.30004883,5206.39990234,0.50);
MoveObject(cell25,1840.59997559+1.25,-1714.30004883,5206.39990234,0.50);
MoveObject(cell26,1837.40002441+1.25,-1714.30004883,5206.39990234,0.50);
MoveObject(cell27,1834.19995117+1.25,-1714.30004883,5206.39990234,0.50);
MoveObject(cell28,1831.00000000+1.25,-1714.30004883,5206.39990234,0.50);
MoveObject(cell29,1827.80004883+1.25,-1714.30004883,5206.39990234,0.50);
MoveObject(cell30,1827.80004883+1.25,-1714.30004883,5209.89990234,0.50);
MoveObject(cell31,1831.00000000+1.25,-1714.30004883,5209.89990234,0.50);
MoveObject(cell32,1834.19995117+1.25,-1714.30004883,5209.89990234,0.50);
MoveObject(cell33,1837.40002441+1.25,-1714.30004883,5209.89990234,0.50);
MoveObject(cell34,1840.59997559+1.25,-1714.30004883,5209.89990234,0.50);
MoveObject(cell35,1843.80004883+1.25,-1714.30004883,5209.89990234,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cells has been opened!");
}
return 1;
}
if(!strcmp(cmdtext, "/closecells", true)) // editat de camataru
{
if(PlayerInfo[playerid][pMember] == 3|| PlayerInfo[playerid][pLeader] == 3)
{
MoveObject(cell0,1827.80004883,-1729.19995117,5202.79980469,0.50);
MoveObject(cell1,1831.00000000,-1729.19995117,5202.79980469,0.50);
MoveObject(cell2,1834.19995117,-1729.19995117,5202.79980469,0.50);
MoveObject(cell3,1837.40002441,-1729.19995117,5202.79980469,0.50);
MoveObject(cell4,1840.59997559,-1729.19995117,5202.79980469,0.50);
MoveObject(cell5,1827.80004883,-1729.19995117,5206.39990234,0.50);
MoveObject(cell6,1831.00000000,-1729.19995117,5206.39990234,0.50);
MoveObject(cell7,1834.19995117,-1729.19995117,5206.39990234,0.50);
MoveObject(cell8,1837.40002441,-1729.19995117,5206.39990234,0.50);
MoveObject(cell9,1840.59997559,-1729.19995117,5206.39990234,0.50);
MoveObject(cell10,1843.80004883,-1729.19995117,5206.39990234,0.50);
MoveObject(cell11,1843.80004883,-1729.19995117,5202.79980469,0.50);
MoveObject(cell12,1843.80004883,-1729.19995117,5209.89990234,0.50);
MoveObject(cell13,1840.59997559,-1729.19995117,5209.89990234,0.50);
MoveObject(cell14,1837.40002441,-1729.19995117,5209.89990234,0.50);
MoveObject(cell15,1834.19995117,-1729.19995117,5209.89990234,0.50);
MoveObject(cell16,1831.00000000,-1729.19995117,5209.89990234,0.50);
MoveObject(cell17,1827.80004883,-1729.19995117,5209.89990234,0.50);
MoveObject(cell18,1827.80004883,-1714.30004883,5202.79980469,0.50);
MoveObject(cell19,1831.00000000,-1714.30004883,5202.79980469,0.50);
MoveObject(cell20,1834.19995117,-1714.30004883,5202.79980469,0.50);
MoveObject(cell21,1837.40002441,-1714.30004883,5202.79980469,0.50);
MoveObject(cell22,1840.59997559,-1714.30004883,5202.79980469,0.50);
MoveObject(cell23,1843.80004883,-1714.30004883,5202.79980469,0.50);
MoveObject(cell24,1843.80004883,-1714.30004883,5206.39990234,0.50);
MoveObject(cell25,1840.59997559,-1714.30004883,5206.39990234,0.50);
MoveObject(cell26,1837.40002441,-1714.30004883,5206.39990234,0.50);
MoveObject(cell27,1834.19995117,-1714.30004883,5206.39990234,0.50);
MoveObject(cell28,1831.00000000,-1714.30004883,5206.39990234,0.50);
MoveObject(cell29,1827.80004883,-1714.30004883,5206.39990234,0.50);
MoveObject(cell30,1827.80004883,-1714.30004883,5209.89990234,0.50);
MoveObject(cell31,1831.00000000,-1714.30004883,5209.89990234,0.50);
MoveObject(cell32,1834.19995117,-1714.30004883,5209.89990234,0.50);
MoveObject(cell33,1837.40002441,-1714.30004883,5209.89990234,0.50);
MoveObject(cell34,1840.59997559,-1714.30004883,5209.89990234,0.50);
MoveObject(cell35,1843.80004883,-1714.30004883,5209.89990234,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Cells has been closed!");
}
return 1;
}
if(!strcmp(cmdtext, "/dooropen", true)) // editat de Camataru
{
if(PlayerInfo[playerid][pMember] == 3|| PlayerInfo[playerid][pLeader] == 3)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906))
{
MoveObject(door1,1849.32995605-1.25,-1714.31005859,5201.54003906,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 1 has been opened!");
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0,1847.31994629,-1722.56994629,5201.54003906))
{
MoveObject(door2,1847.31994629,-1722.56994629-1.25,5201.54003906,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 2 has been opened!");
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0,1854.01953125,-1726.27343750,5201.54003906))
{
MoveObject(door3,1854.01953125,-1726.27343750-1.25,5201.54003906,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 3 has been opened!");
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0,1862.02246094,-1710.91992188,5201.54003906))
{
MoveObject(door4,1862.02246094-1.25,-1710.91992188,5201.54003906,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 4 has been opened!");
return 1;
}
else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any door!");
}
return 1;
}
if(!strcmp(cmdtext, "/doorclose", true)) // editat de Camataru
{
if(PlayerInfo[playerid][pMember] == 3|| PlayerInfo[playerid][pLeader] == 3)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906))
{
MoveObject(door1,1849.32995605,-1714.31005859,5201.54003906,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 1 has been closed!");
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0,1847.31994629,-1722.56994629,5201.54003906))
{
MoveObject(door2,1847.31994629,-1722.56994629,5201.54003906,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 2 has been closed!");
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0,1854.01953125,-1726.27343750,5201.54003906))
{
MoveObject(door3,1854.01953125,-1726.27343750,5201.54003906,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 3 has been closed!");
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0,1862.02246094,-1710.91992188,5201.54003906))
{
MoveObject(door4,1862.02246094,-1710.91992188,5201.54003906,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 4 has been closed!");
return 1;
}
else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any door!");
}
return 1;
}
if(!strcmp(cmdtext, "/gotojail", true)) //editat de camataru
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
SetPlayerPos(playerid, 1849.32995605,-1714.31005859,5201.54003906);
SetPlayerInterior(playerid, 5);

}
return 1;
}

return 0;
}


Pls master scripters help me.
Reply
#2

Have you added plugins?
Reply
#3

yes i have sscanf and streamer
Reply
#4

zdfa
Reply
#5

Do you get any errors when compiling?
Reply
#6

No i don't have any errors when compiling
Reply
#7

Place this in first place of your filterscripts line in server.cfg!
Reply
#8

I do this but have no effect. I don't know what are this filterscript.But i don't know the original filterscript work perfect and this filterscript after add a condition( playerinfo[pMember] and PlayerInfo[pLeader]) dont;t work commands.
And when i add objects and comands in gm comands work but not appear doors and cells
Reply
#9

http://forum.sa-mp.com/showthread.ph...ghlight=prison this is original filterscript
Reply
#10

i update streamer at 2.7.8 and sscanf 3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)