[POMOC]Bug na cosu

Započeo Matrix_Green
12. Jan. 2012. Zaključano
1,513
pregleda
16
postova
sandman12wolf
4
Enforcer
12. Jan. 2012.
Skripta koju koristim: Classic Life
Problem: Evo ovako na svakom cosu imam problem i za aute i za motore sve,kad ga kupim ne oduzme mi pare,a kad ocu kupiti pise mi da ga imam u vlasnistvu pa moram npr /mo prodaj i  to ostalo pa onda kupiti
Dio Skripte recite sta treba ja cu dati
Luis
5
Godfather
12. Jan. 2012.
Stavis u svoju komandu di ti treba oduzeti novac :
GivePlayerMoney(playerid, -5000);

-5000 mijenjas po svome na koliko zelis...
SEJFO
5
Godfather
12. Jan. 2012.
Quote from January 12, 2012, 9:53 pm:
Stavis u svoju komandu di ti treba oduzeti novac :
GivePlayerMoney(playerid, -5000);

-5000 mijenjas po svome na koliko zelis...


Da bi ti konstantno ostale pare stavi
SafeGivePlayerMoney(playerid, -5000);
😛
sandman12wolf
4
Enforcer
13. Jan. 2012.
evo ovo je moja komanda
	if(strcmp(cmd, "/kupivozilo", true) == 0)
{
    if (Spectating!=-1)
    {
        if (Carlist==-1)
        {
            new price = Buylist[Spectating];
            if (price <= GetPlayerMoney(playerid))
            {
                new autohaus=Buylist[Spectating];
          GivePlayerMoney(playerid, - price);
          Carlist = Spectating; Carlist = Carspawns; Carlist = Carspawns;
Carlist = Carspawns; Carlist = Carspawns; Carlist = 1; Carlist = 0;
Carlist = CreateVehicle(Buylist[Spectating],Carlist,Carlist,Carlist,Carlist,-1,-1,-1);
        SetVehicleParamsForAll(Buylist[Spectating],0,0);
        TogglePlayerControllable(playerid,1);
        Spectating=-1;
        RemovePlayerFromVehicle(playerid);
        VehicleSave(playerid);
        TextDrawHideForPlayer(playerid, imevozila);
TextDrawHideForPlayer(playerid, cijenavozila);
TextDrawHideForPlayer(playerid, registracijavozila);
format(string,128,"* Cestitamo! Kupili ste auto {FFFFFF}$%s "COL_YELLOW"za {FFFFFF}%i!",Buylist[Carlist],price);
SendClientMessage(playerid, YELLOW, string);
SendClientMessage(playerid, NICERED, "Ako je vas auto pokvaren, upisite {FFFFFF}/v fix "COL_RED"da popravite.");
SendClientMessage(playerid, NICERED, "Mozete otkljucati/zakljucati vas auto sa naredbom {FFFFFF}/v lock.");
SendClientMessage(playerid, NICERED, "Ostalo: {FFFFFF}(/v)ozilo.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Vase vozilo je dostavljeno, Uzivajte!");
}
                else { format(string, 128, "* Nedovoljno novca za kupnju automobila (trebate: {FFFFFF}$%i)!", price); SendClientMessage(playerid, YELLOW, string); }
}
else { SendClientMessage(playerid, COLOR_GREY, "Vi vec imate auto!"); }
    }
    else { SendClientMessage(playerid, COLOR_GREY, "Nisi u izlozbenom vozilu!"); }
    return 1;
}

ima tu ono giveplayer mone al ne pise mi cjena nego je stavljen samo -
Luis
5
Godfather
13. Jan. 2012.
to je uredu to bi trebalo raditi pogledaj si jos ovo Buylist[Spectating]
potrazi taj buylist tu su ti cijene vozila odakle bi ti trebalo oduzeti..
btw pogledaj ovaj dio :
            new price = Buylist[Spectating];
            if (price <= GetPlayerMoney(playerid))
            {
                new autohaus=Buylist[Spectating];
          GivePlayerMoney(playerid, - price);

Probaj ovako :
            new price = Buylist[Spectating];
            if (price <= GetPlayerMoney(playerid))
            {
                new autohaus=Buylist[Spectating];
          GivePlayerMoney(playerid, - autohaus);
sandman12wolf
4
Enforcer
13. Jan. 2012.
izbacuje mi 2 errora
C:\Documents and Settings\Sandman\Desktop\server\pawno\include\G_ObjectsRot.inc(91) : error 004: function "OnObjectRotated" is not implemented
C:\Documents and Settings\Sandman\Desktop\Classic Life RolePlay\gamemodes\CLRP.pwn(68836) : error 021: symbol already defined: "NameTimer"
public NameTimer()
{ kao na ovo je error
foreach (Player, i)
{
foreach (Player, q)
{
new Float:p1x;
new Float:p1y;
new Float:p1z;
new Float:p2x;
new Float:p2y;
new Float:p2z;
if(IsPlayerConnected(i) && IsPlayerConnected(q))
{
GetPlayerPos(i,p1x,p1y,p1z);
    GetPlayerPos(q,p2x,p2y,p2z);
if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
{
if(PlayerInfo != 1)
    {
ShowPlayerNameTagForPlayer(i,q,1);
}
    }
else
{
ShowPlayerNameTagForPlayer(i,q,0);
                }
            }
        }
}
}


a ovo je pod 91 ne razumijem kako na tom je error xD
#define COL_VIOLET        "{B700FF}"
bump
4
Enforcer
13. Jan. 2012.
 if (-price <= GetPlayerMoney(playerid))

ovako sam ja uradio na svom cosu i radi
Luis
5
Godfather
13. Jan. 2012.
nije red 91 iz skripte pogledaj G_ObjectsRot.inc(91) to ti je u include taj eror...
a za NameTimer to ti je vec definirano negdje samo obrisi to vjeroajtno u tom inc imas NameTimer...
b3ntleY
5
Underboss
13. Jan. 2012.
trebas
1. popraviti bug sa novce 2. nije giveplayermoney nego giveplayercash ...
sandman12wolf
4
Enforcer
13. Jan. 2012.
Quote from January 13, 2012, 3:08 pm:
nije red 91 iz skripte pogledaj G_ObjectsRot.inc(91) to ti je u include taj eror...
a za NameTimer to ti je vec definirano negdje samo obrisi to vjeroajtno u tom inc imas NameTimer...


nisam te razumio di da je definirano
bump
4
Enforcer
13. Jan. 2012.
sandman12wolf wrote on January 13, 2012, 3:08 pm:
nije red 91 iz skripte pogledaj G_ObjectsRot.inc(91) to ti je u include taj eror...
a za NameTimer to ti je vec definirano negdje samo obrisi to vjeroajtno u tom inc imas NameTimer...


nisam te razumio di da je definirano

uradi kao sto sam ti rekao
sandman12wolf
4
Enforcer
13. Jan. 2012.
Quote from January 13, 2012, 3:08 pm:
nije red 91 iz skripte pogledaj G_ObjectsRot.inc(91) to ti je u include taj eror...
a za NameTimer to ti je vec definirano negdje samo obrisi to vjeroajtno u tom inc imas NameTimer...


nisam te razumio di da je definirano

uradi kao sto sam ti rekao

to sam dodao al opet mi izbacuje error tj ova 2 errora
bump
4
Enforcer
13. Jan. 2012.
Ovako stavi
	if(strcmp(cmd, "/kupivozilo", true) == 0)
{
    if (Spectating!=-1)
    {
        if (Carlist==-1)
        {
            new price = Buylist[Spectating];
            if (-price <= GetPlayerMoney(playerid))
            {
                new autohaus=Buylist[Spectating];
          GivePlayerMoney(playerid, - price);
          Carlist = Spectating; Carlist = Carspawns; Carlist = Carspawns;
Carlist = Carspawns; Carlist = Carspawns; Carlist = 1; Carlist = 0;
Carlist = CreateVehicle(Buylist[Spectating],Carlist,Carlist,Carlist,Carlist,-1,-1,-1);
        SetVehicleParamsForAll(Buylist[Spectating],0,0);
        TogglePlayerControllable(playerid,1);
        Spectating=-1;
        RemovePlayerFromVehicle(playerid);
        VehicleSave(playerid);
        TextDrawHideForPlayer(playerid, imevozila);
TextDrawHideForPlayer(playerid, cijenavozila);
TextDrawHideForPlayer(playerid, registracijavozila);
format(string,128,"* Cestitamo! Kupili ste auto {FFFFFF}$%s "COL_YELLOW"za {FFFFFF}%i!",Buylist[Carlist],price);
SendClientMessage(playerid, YELLOW, string);
SendClientMessage(playerid, NICERED, "Ako je vas auto pokvaren, upisite {FFFFFF}/v fix "COL_RED"da popravite.");
SendClientMessage(playerid, NICERED, "Mozete otkljucati/zakljucati vas auto sa naredbom {FFFFFF}/v lock.");
SendClientMessage(playerid, NICERED, "Ostalo: {FFFFFF}(/v)ozilo.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Vase vozilo je dostavljeno, Uzivajte!");
}
                else { format(string, 128, "* Nedovoljno novca za kupnju automobila (trebate: {FFFFFF}$%i)!", price); SendClientMessage(playerid, YELLOW, string); }
}
else { SendClientMessage(playerid, COLOR_GREY, "Vi vec imate auto!"); }
    }
    else { SendClientMessage(playerid, COLOR_GREY, "Nisi u izlozbenom vozilu!"); }
    return 1;
}
Luis
5
Godfather
13. Jan. 2012.
sandman12wolf wrote on January 13, 2012, 3:08 pm:
nije red 91 iz skripte pogledaj G_ObjectsRot.inc(91) to ti je u include taj eror...
a za NameTimer to ti je vec definirano negdje samo obrisi to vjeroajtno u tom inc imas NameTimer...


nisam te razumio di da je definirano

ovaj prvi eror ti je u include moras tamo pogledati na 91 redu..
a drugi eror obrisi samo taj Name Timer...
sandman12wolf
4
Enforcer
13. Jan. 2012.
imam problem izbacuje mi error kada ukljucujem kucni host da probaj to na gmu
evo ovo je iz log filea

SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

[03:50:53] filterscripts = ""  (string)
[03:50:53]
[03:50:53] Server Plugins
[03:50:53] --------------
[03:50:53]  Loaded 0 plugins.

[03:50:54]
[03:50:54] Filterscripts
[03:50:54] ---------------
[03:50:54]  Loaded 0 filterscripts.

[03:50:54] Script[gamemodes/glrp.amx]: Run time error 19: "File or function is not found"
[03:50:54] Number of vehicle models: 0
[03:50:59] --- Server Shutting Down.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha