[Pomoc] /deposit

Započeo Shone, Jul 06, 2011, 17:22:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Shone

Skripta koju koristim:Edit Bu
Detaljan opis problema: E ovako, moze li mi ko pomoci kada udjem u banku i kucam na salteru /deposit pise mi Niste u banci! A ja sam menjao banku pa me sada zanima gdje da stavim nove koordinate posto ispok komande deposit toga nema. evo Kako meni zgleda

if(strcmp(cmd, "/deposit", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(PlayerInfo[playerid][pLocal] != 103)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste u banci !");
               return 1;
           }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /deposit [kolicina]");
            format(string, sizeof(string), "  Imate $%d na vasem racunu.", PlayerInfo[playerid][pAccount]);
            SendClientMessage(playerid, COLOR_GRAD3, string);
            return 1;
         }
         new cashdeposit = strval(tmp);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /deposit [kolicina]");
            format(string, sizeof(string), "  Imate $%d na vasem racunu.", PlayerInfo[playerid][pAccount]);
            SendClientMessage(playerid, COLOR_GRAD3, string);
            return 1;
         }
         if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   Nemate toliko novca");
            return 1;
         }
         SafeGivePlayerMoney(playerid,-cashdeposit);
         new curfunds = PlayerInfo[playerid][pAccount];
         PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount];
         SendClientMessage(playerid, COLOR_WHITE, "|___ NOVOSTI IZ BANKE ___|");
         format(string, sizeof(string), "  Staro Stanje: $%d", curfunds);
         SendClientMessage(playerid, COLOR_GRAD2, string);
         format(string, sizeof(string), "  Deposit: $%d",cashdeposit);
         SendClientMessage(playerid, COLOR_GRAD4, string);
         SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
         format(string, sizeof(string), "  Novo stanje: $%d", PlayerInfo[playerid][pAccount]);
         SendClientMessage(playerid, COLOR_WHITE, string);
         return 1;
      }
      return 1;
   }

Hvala Unapred!


Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Zamenis ovo
if(PlayerInfo[playerid][pLocal] != 103)
sa ovim
if(PlayerToPoint(6.0, playerid, x,y,z))            //Ovde promenis ovo x,y,z , da nadjes kordinate koristi /save ako ne imas mnoge tutove ovde na bs

ne bolje zamjen sa IsPlayerInRangeOfPoint
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Shone