pomoc = unkonw

Započeo Ante_Dracar aka Lopa, Jul 12, 2010, 21:42:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

ovako naravio sam komandu az rentbike,ali kada krenem testat motore nekad mi neke motore oce nekad nece,znaci svaki put dukciji mi motor izbaci SERVER:unknow command i sada me zanima kako da to napravim...

komanda...

//---------------------------------------rentbike---------------------------------------
if(strcmp(cmd, "/rentbike", true) == 0)
{
       if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 264 && GetPlayerVehicleID(playerid) <= 282)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(GetPlayerVehicleID(playerid) >= 264 && GetPlayerVehicleID(playerid) <= 282)
{
if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Prodano", 5000, 1);
return 1;
}
if(PlayerInfo[playerid][pPbiskey] == 0)
{
GameTextForPlayer(playerid, "~w~Nema zaduzenih sefova", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}
if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate toliko novaca!");
return 1;
}
GivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbProducts]--;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
}
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Nadamo se da cete uzivati ~n~koristite ove motore~n~Za zakljucavanje i otkljucavanje motocikla koristite~n~type ~g~/lock~n~~w~molimo vozite sigurno",hirefee);
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}




ona poruka sta ti se pojavi kad sidnes na motor,ako zelis rentat upisi rentbike ITD...

//--------------------------------------rent-bike--------------------------------
if(newcar >= 264 && newcar <= 282)
{
if (HireCar[playerid] != newcar)
{
format(string, sizeof(string), "~w~Mozete iznajmiti ovaj motor~n~Cijena:~g~$%d~n~~w~Za najam upisite ~g~/rentbike~w~~n~da izadete van upisite ~r~/exit",SBizzInfo[1][sbEntranceCost]);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, string, 5000, 3);
}
}



i evo motori...

AddStaticVehicle(461,-1665.2987,1215.3322,6.8473,257.5993,1,1); //Rentbike1
   AddStaticVehicle(461,-1666.0133,1209.0404,6.8346,292.1792,1,1); //Rentbike2
   AddStaticVehicle(462,-1651.4524,1214.0588,6.8472,357.1904,1,1); //Rentbike3
   AddStaticVehicle(462,-1652.8505,1215.3015,6.8467,345.9979,1,1); //Rentbike4
   AddStaticVehicle(463,-1666.0048,1204.1307,13.2122,324.4584,1,1); //Rentbike5
   AddStaticVehicle(463,-1668.7186,1204.5947,13.2122,315.3842,1,1); //Rentbike6
   AddStaticVehicle(468,-1664.6007,1225.6703,13.3410,235.6181,1,1); //Rentbike7
   AddStaticVehicle(468,-1666.8041,1223.2698,13.3470,241.6907,1,1); //Rentbike8
   AddStaticVehicle(471,-1650.3928,1204.1577,13.1389,4.5581,1,1); //Rentbike9
   AddStaticVehicle(471,-1646.3784,1204.4961,13.1581,359.1228,1,1); //Rentbike10
   AddStaticVehicle(521,-1680.1541,1207.9476,20.7281,284.0162,1,1); //Rentbike11
   AddStaticVehicle(521,-1677.0115,1205.6305,20.7260,288.5205,1,1); //Rentbike12
   AddStaticVehicle(522,-1653.0490,1203.6050,20.7248,334.4218,1,1); //Rentbike13
   AddStaticVehicle(522,-1656.1815,1204.1832,20.7223,337.5268,1,1); //Rentbike14
   AddStaticVehicle(522,-1659.4039,1204.1559,20.7272,332.8894,1,1); //Rentbike15
   AddStaticVehicle(581,-1663.9647,1225.0867,20.7566,229.8037,1,1); //Rentbike16
   AddStaticVehicle(581,-1665.8047,1222.4893,20.7485,227.8204,1,1); //Rentbike17
   AddStaticVehicle(586,-1659.6226,1214.0774,20.6763,267.5463,1,1); //Rentbike18
   AddStaticVehicle(586,-1659.2247,1211.5928,20.6763,265.1227,1,1); //Rentbike19




hvala unaprjed...ukoliko treba bolje pojasnit samo recite,hvala...

ovako skripta mi ima vise od 30.000 redeva pa jeli mozda problem sto je prevelika,ili sto imam,/rentbike,/rentheli,/rentcar,,ili mozda sto imam previse komandi u njoj...
Poslednja Izmena: Jul 12, 2010, 21:53:53 POSLE PODNE od [SA] Ante_Dracar