Jump to content
  • 0

Comanda cmd:movebiz si un bug la ds


VaLuTzzU

Question

Salut , am si eu o rugaminte la voi , Imi poate da si mie cineva comanda cmd:movebiz ? pentru gamemode-ul BigZone ? Si mai am o problema , La DS am masinile incurcate..de Exemplu dau sa cumpar Infernus si imi da Bravura , Daca dau pe Bravura imi da Infernus , Cineva va rog ? Multumesc anticipat !

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
57 minutes ago, Rayan said:

In bigzone ai comanda /movehouse mi se pare, si poti sa inlocui pe acolo vezi ca ai [HouseInfo][hEnteranceX,Z,Y] si le inlocui cu [BizInfo][bEnteranceX,Y,Z]

Imi da urmatoarele errori

Quote

C:\Users\vali\Desktop\Tenerife\gamemodes\BigZoneGM.pwn(23862) : error 017: undefined symbol "BizInfo"
C:\Users\vali\Desktop\Tenerife\gamemodes\BigZoneGM.pwn(23862) : error 017: undefined symbol "biz"
C:\Users\vali\Desktop\Tenerife\gamemodes\BigZoneGM.pwn(23862) : error 029: invalid expression, assumed zero

 

Link to comment
Share on other sites

  • 0

Legat de problema de la DS, cred ca trebuie sa modifici tu masinile din baza de date.

comanda:

incearca sa modifici comanda /movehouse cum vrei tu, eu iti dau un model cum am facut eu

CMD:movebiz(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
    if(IsPlayerConnected(playerid))
	{

		if(PlayerInfo[playerid][pAdmin] < 6) return 0;

	    new house,Float:pX,Float:pY,Float:pZ,query[256];
	    if(sscanf(params, "d", house)) return SendClientMessage(playerid, -1, "Folosire: /movebiz [bizid]");
	    GetPlayerPos(playerid, pX, pY, pZ);
	    BizzInfo[house][bEntranceX] = pX;
	    BizzInfo[house][bEntranceY] = pY;
	    BizzInfo[house][bEntranceZ] = pZ;
	    new i = house;
	    mysql_format(SQL, query, sizeof(query), "UPDATE `bizz` SET `EntranceX`='%f',`EntranceY`='%f',`EntranceZ`='%f' WHERE `ID`='%d'",BizzInfo[house][bEntranceX],BizzInfo[house][bEntranceY],BizzInfo[house][bEntranceZ],house);
		mysql_tquery(SQL,query,"","");
		SendClientMessage(playerid, -1, "Ai mutat business-ul cu succes!");
		OnPropTextdrawUpdate(2, i); //nu stiu sigur daca ai functia, cauta sa vezi daca nu elimina
	}
	return 1;
}

 

Edited by Rayan
  • Upvote 1
Link to comment
Share on other sites

  • 0
6 minutes ago, Rayan said:

Legat de problema de la DS, cred ca trebuie sa modifici tu masinile din baza de date.

comanda:

incearca sa modifici comanda /movehouse cum vrei tu, eu iti dau un model cum am facut eu


CMD:movebiz(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
    if(IsPlayerConnected(playerid))
	{

		if(PlayerInfo[playerid][pAdmin] < 6) return 0;

	    new house,Float:pX,Float:pY,Float:pZ,query[256];
	    if(sscanf(params, "d", house)) return SendClientMessage(playerid, -1, "Folosire: /movebiz [bizid]");
	    GetPlayerPos(playerid, pX, pY, pZ);
	    BizzInfo[house][bEntranceX] = pX;
	    BizzInfo[house][bEntranceY] = pY;
	    BizzInfo[house][bEntranceZ] = pZ;
	    new i = house;
	    mysql_format(SQL, query, sizeof(query), "UPDATE `bizz` SET `EntranceX`='%f',`EntranceY`='%f',`EntranceZ`='%f' WHERE `ID`='%d'",BizzInfo[house][bEntranceX],BizzInfo[house][bEntranceY],BizzInfo[house][bEntranceZ],house);
		mysql_tquery(SQL,query,"","");
		SendClientMessage(playerid, -1, "Ai mutat business-ul cu succes!");
		OnPropTextdrawUpdate(2, i); //nu stiu sigur daca ai functia, cauta sa vezi daca nu elimina
	}
	return 1;
}

 

In legatura cu Movebiz , a mers , multumesc , si in DS..nu stiu..am incercat , dar nimic , In baza de date la DS imi lipsesc cateva masinii , dar cand incerc sa le adaug dupa sa urc iar baza de date pe mysql imi da erori

Link to comment
Share on other sites

  • 0
Acum 5 ore, VaLuTzzU a spus:

Si da , mai am o problema cred ca e bug ceva nu stiu sigur..cand dau pe cineva afara din factiune (/fpk) , e totul ok , dar cand reintra pe server este din nou in factiune

daca ai rezolvat problema va rog sa reveniti cu un alt topic. 

cereti C/T unui moderator ! 

Edited by Geani

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

  • 0
La 8/14/2017 la 19:11, VaLuTzzU a spus:

Si da , mai am o problema cred ca e bug ceva nu stiu sigur..cand dau pe cineva afara din factiune (/fpk) , e totul ok , dar cand reintra pe server este din nou in factiune

La executarea /fpk trebuie sa faci actualizarea pentru jucatorul respectiv in baza de date, sa i se seteze group 0, rank 0 ,etc...gen incearca sa copii de la comanda uninvite de la un lider.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.