PDA

View Full Version : Unknown command but command work


capsator10
11/08/2014, 11:51 PM
Command works fine, but say unknown command.
https://imageshack.com/i/p7QE1nicp

if(strcmp(cmd, "/vama", true) == 0)
{
if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama1,54.231167, -1529.687012, 9.320637, 3.5);
SetTimer("vamaClose1", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~~h~-500", 5000, 1);
SendClientMessage(playerid, COLOR_GREEN, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_BLUE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama2,52.695782, -1540.765869, 9.255125, 3.5);
SetTimer("vamaClose2", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~~h~-50", 5000, 1);
SendClientMessage(playerid, COLOR_GREEN, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5);
SetTimer("vamaClose3", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 79.7887,-1267.8707,14.4737))//vama5
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama5, 86.199996948242, -1263.1999511719, 10.199999809265, 3.5);
SetTimer("vamaClose5", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 86.4550,-1249.6454,14.6873))//vama6
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama6, 80.300003051758, -1253.8000488281, 10.199999809265, 3.5);
SetTimer("vamaClose6", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5);
SetTimer("vamaClose4", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2677.2427,1267.8577,55.4297))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama7, -2677.3000488281, 1274.0999755859, 50.099998474121, 3.5);
SetTimer("vamaClose7", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2667.7046,1268.1748,55.4297))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama8, -2668.099609375, 1274.5, 50.099998474121, 3.5);
SetTimer("vamaClose8", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 102.4933,-1270.5217,14.7523))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama9, 98.400001525879, -1273.8000488281, 10.199999809265, 3.5);
SetTimer("vamaClose9", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 100.8988,-1285.2039,14.3161))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama10, 104.40000152588, -1282.4000244141, 10.199999809265, 3.5);
SetTimer("vamaClose10", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -1724.1564,-743.2758,35.6537))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama11, -1721.8000488281, -747.29998779297, 30.099998474121, 3.5);
SetTimer("vamaClose11", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -1710.0458,-739.7853,37.3692))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama12, -1714.3000488281, -737.29998779297, 30.299999237061, 3.5);
SetTimer("vamaClose12", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2875.9744,-1009.6417,9.4922))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama13, -2875.5, -1004, 3.300000190735, 3.5);
SetTimer("vamaClose13", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2888.6890,-997.1403,9.4922))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama14, -2889.5, -1002.700012207, 3.300000190735, 3.5);
SetTimer("vamaClose14", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -1159.7938,1062.8971,40.2110))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama15, -1163.9000244141, 1062.9000244141, 45.599998474121 , 3.5);
SetTimer("vamaClose15", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -1180.7094,1074.2361,40.4388))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama16, -1176.1999511719, 1074.4000244141, 45.599998474121, 3.5);
SetTimer("vamaClose16", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(3.0, playerid, -1163.7650,1066.9692,40.2029))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama17, -1164.099609375, 1063.19921875, 45.599998474121 , 3.5);
SetTimer("vamaClose17", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(3.0, playerid, -1176.5973,1069.6074,40.4582))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama18, -1175.9000244141, 1074.0999755859, 45.599998474121 , 3.5);
SetTimer("vamaClose18", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2686.5955,1281.2941,55.4297))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama19, -2686.3999023438, 1274, 50.099998474121 , 3.5);
SetTimer("vamaClose19", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2694.8418,1281.9725,55.4297))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama20, -2695.5, 1274.6999511719, 50.099998474121 , 3.5);
SetTimer("vamaClose20", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Nu esti la vama.");
return 1;
}
}

SKAzini
12/08/2014, 12:24 AM
Use crashdetect and type that command, see if it posts anything about index out of bounds, if it does, post the server log here.

Stanford
12/08/2014, 12:37 AM
return 1;
Before the last bracket!

capsator10
12/08/2014, 12:57 AM
http://pastebin.com/nbdYr0BL

capsator10
12/08/2014, 11:33 AM
bump

Don_Cage
12/08/2014, 11:40 AM
Stanford allready told the solution

capsator10
12/08/2014, 11:41 AM
return 1;
Before the last bracket!

Not work.

sorry for my bad english.

Don_Cage
12/08/2014, 11:49 AM
Are you sure you put the return at the right place?
if(strcmp(cmd, "/vama", true) == 0)
{
if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama1,54.231167, -1529.687012, 9.320637, 3.5);
SetTimer("vamaClose1", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~~h~-500", 5000, 1);
SendClientMessage(playerid, COLOR_GREEN, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_BLUE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama2,52.695782, -1540.765869, 9.255125, 3.5);
SetTimer("vamaClose2", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~~h~-50", 5000, 1);
SendClientMessage(playerid, COLOR_GREEN, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5);
SetTimer("vamaClose3", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 79.7887,-1267.8707,14.4737))//vama5
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama5, 86.199996948242, -1263.1999511719, 10.199999809265, 3.5);
SetTimer("vamaClose5", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 86.4550,-1249.6454,14.6873))//vama6
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama6, 80.300003051758, -1253.8000488281, 10.199999809265, 3.5);
SetTimer("vamaClose6", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5);
SetTimer("vamaClose4", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2677.2427,1267.8577,55.4297))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama7, -2677.3000488281, 1274.0999755859, 50.099998474121, 3.5);
SetTimer("vamaClose7", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2667.7046,1268.1748,55.4297))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama8, -2668.099609375, 1274.5, 50.099998474121, 3.5);
SetTimer("vamaClose8", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 102.4933,-1270.5217,14.7523))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama9, 98.400001525879, -1273.8000488281, 10.199999809265, 3.5);
SetTimer("vamaClose9", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, 100.8988,-1285.2039,14.3161))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama10, 104.40000152588, -1282.4000244141, 10.199999809265, 3.5);
SetTimer("vamaClose10", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -1724.1564,-743.2758,35.6537))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama11, -1721.8000488281, -747.29998779297, 30.099998474121, 3.5);
SetTimer("vamaClose11", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -1710.0458,-739.7853,37.3692))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama12, -1714.3000488281, -737.29998779297, 30.299999237061, 3.5);
SetTimer("vamaClose12", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2875.9744,-1009.6417,9.4922))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama13, -2875.5, -1004, 3.300000190735, 3.5);
SetTimer("vamaClose13", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2888.6890,-997.1403,9.4922))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama14, -2889.5, -1002.700012207, 3.300000190735, 3.5);
SetTimer("vamaClose14", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -1159.7938,1062.8971,40.2110))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama15, -1163.9000244141, 1062.9000244141, 45.599998474121 , 3.5);
SetTimer("vamaClose15", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -1180.7094,1074.2361,40.4388))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama16, -1176.1999511719, 1074.4000244141, 45.599998474121, 3.5);
SetTimer("vamaClose16", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(3.0, playerid, -1163.7650,1066.9692,40.2029))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama17, -1164.099609375, 1063.19921875, 45.599998474121 , 3.5);
SetTimer("vamaClose17", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(3.0, playerid, -1176.5973,1069.6074,40.4582))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama18, -1175.9000244141, 1074.0999755859, 45.599998474121 , 3.5);
SetTimer("vamaClose18", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2686.5955,1281.2941,55.4297))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama19, -2686.3999023438, 1274, 50.099998474121 , 3.5);
SetTimer("vamaClose19", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else if(PlayerToPoint(5.0, playerid, -2694.8418,1281.9725,55.4297))
{
if(PlayerInfo[playerid][pPassport] == 1)
{
MoveDynamicObject(vama20, -2695.5, 1274.6999511719, 50.099998474121 , 3.5);
SetTimer("vamaClose20", 4000, 0);
GivePlayerCash(playerid, -50);
GameTextForPlayer(playerid, "~r~-50", 500, 1);
SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[Vames]:{FFFFFF} Bariera a fost deschisa pentru {F3FF02}4{FFFFFF} seconde.");
SBizzInfo[4][sbTill] += 50;
ExtortionSBiz(14, 50);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "* Nu ai Pasaport, dute la City Hall si cumpara unu.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Nu esti la vama.");
return 1;
}
return 1;
}

capsator10
12/08/2014, 11:50 AM
yes, command work but say unknown command.

here is crash detect http://pastebin.com/nbdYr0BL

Arastair
12/08/2014, 12:10 PM
Problem is about return 1;

but please, if you want me to help you upload the pic in tinypic.com because i cant see the image

capsator10
12/08/2014, 12:13 PM
My anti virus block that page, give me another link.

http://i.cubeupload.com/kOpNko.jpg