[Pomoc]ATM

Započeo Retardinjo, April 11, 2011, 13:07:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.


if(!IsPlayerInRangeOfPoint(playerid, 3, 1034.45593262,-1024.63781738,31.74446106) && !IsPlayerInRangeOfPoint(playerid, 3, 1210.35656738,-916.02075195,42.67547607) && !IsPlayerInRangeOfPoint(playerid, 3, 1834.03784180,-1851.03039551,13.03264713) && !IsPlayerInRangeOfPoint(playerid, 3, 1286.09313965,-1662.60424805,13.18977451)
&& !IsPlayerInRangeOfPoint(playerid, 3, 1027.52441406,-946.51159668,42.25454712) && !IsPlayerInRangeOfPoint(playerid, 3, 1307.07653809,328.18820190,19.19758606) && !IsPlayerInRangeOfPoint(playerid, 3, 1381.05981445,259.62057495,19.20983124))


EDIT
Poslednja Izmena: April 11, 2011, 15:52:27 POSLE PODNE od Paul McCartney

kad ubacim to tovje dodje mi onaj error ko na prvoj slici sto sam ubacio!  :'( :'(

EDIT: FALA CARE RIJESIO SAM  :D :D
Poslednja Izmena: April 11, 2011, 15:58:48 POSLE PODNE od Gangasta300

@Matt Zasto PTP kad je IsPlayerInRangeOfPoint brzi?

Evo, ovako:

  if(strcmp(cmd, "/atmwithdraw", true) == 0)
{
   
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1034.45593262,-1024.63781738,31.74446106)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1210.35656738,-916.02075195,42.67547607)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1834.03784180,-1851.03039551,13.03264713)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1286.09313965,-1662.60424805,13.18977451)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1027.52441406,-946.51159668,42.25454712)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1307.07653809,328.18820190,19.19758606)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1381.05981445,259.62057495,19.20983124)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, CRVENA, "Komanda: /atmwithdraw [kolicina]");
format(string, sizeof(string), "  Na Racunu imate: $%d", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strvalEx(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, CRVENA, "Komanda: /atmwithdraw [kolicina]");
format(string, sizeof(string), "  Na Racunu ima te: $%d", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, ZUTA, string);
return 1;
}
if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
{
SendClientMessage(playerid, CRVENA, "  Nemate toliko puno Novaca !");
return 1;
}
   ConsumingMoney[playerid] = 1;
JB_GivePlayerMoney(playerid,cashdeposit);
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;
format(string, sizeof(string), "  Vi ste podigli $%d sa svoga racuna Total: $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, ZUTA, string);
return 1;

}

Citat: BloodMaster poslato April 11, 2011, 16:19:51 POSLE PODNE
@Matt Zasto PTP kad je IsPlayerInRangeOfPoint brzi?

Evo, ovako:

  if(strcmp(cmd, "/atmwithdraw", true) == 0)
{
   
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1034.45593262,-1024.63781738,31.74446106)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1210.35656738,-916.02075195,42.67547607)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1834.03784180,-1851.03039551,13.03264713)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1286.09313965,-1662.60424805,13.18977451)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1027.52441406,-946.51159668,42.25454712)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1307.07653809,328.18820190,19.19758606)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
          if(!IsPlayerInRangeOfPoint(playerid, 6.0, 1381.05981445,259.62057495,19.20983124)) return SendClientMessage(playerid,0xff0000,"Nisi kod bankomata!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, CRVENA, "Komanda: /atmwithdraw [kolicina]");
format(string, sizeof(string), "  Na Racunu imate: $%d", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strvalEx(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, CRVENA, "Komanda: /atmwithdraw [kolicina]");
format(string, sizeof(string), "  Na Racunu ima te: $%d", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, ZUTA, string);
return 1;
}
if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
{
SendClientMessage(playerid, CRVENA, "  Nemate toliko puno Novaca !");
return 1;
}
   ConsumingMoney[playerid] = 1;
JB_GivePlayerMoney(playerid,cashdeposit);
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;
format(string, sizeof(string), "  Vi ste podigli $%d sa svoga racuna Total: $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, ZUTA, string);
return 1;

}


na koj god bankomat odem ispise mi da nisam kod bankomata... :DD
al radi ovo od Paul-a  ;D