Jump to content
  • 0

Problema /resethouse


SkyLeAs

Question

Problema intalnita (descriere):Salut am o problema cu comanda /resetallhouse nu le reseteaza 0.o
Ero(area / rile) / warning-(ul / urile):N/a
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:resethouse( playerid, params[ ] )
{
    if ( !IsPlayerAdmin( playerid ) )
		return SendError( playerid, "You need to be logged as RCON admin before use this command!" );
		
	mysql_function_query( g_Handle, "UPDATE `Houses` SET `Name` = 'ForSale'", false, "", "" );
	mysql_function_query( g_Handle, "UPDATE `Accounts` SET `HouseID` = '0'", false, "", "" );
	GameTextForPlayer(playerid, "All houses have been reset, 5000, 2);
	return ( 1 );
}

Imagini / Video (optional):N/a
Ati incercat sa rezolvati singur?:Da dar nmk 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Daca folosesti comanda acesta cand sunt playeri pe sv. acelor persoane care sunt online nu le reseteaza casa.

Odata ce iei sunt pe server cand iese li se salveaza datele care le au deja. practic acea comanda se executa in Baza De date.

Nu am folosit comanda in pc si sunt decat eu on pe sv in pc si nu reseteaza ..

Link to comment
Share on other sites

  • 0

:)) Ai incercat asta?

CMD:resethouse( playerid, params[ ] )
{
    if ( !IsPlayerAdmin( playerid ) )
		return SendError( playerid, "You need to be logged as RCON admin before use this command!" );
		
	mysql_function_query( g_Handle, "UPDATE `Houses` SET `Name` = 'ForSale'", true "", "" );
	mysql_function_query( g_Handle, "UPDATE `Accounts` SET `HouseID` = '0'", true, "", "" );
	GameTextForPlayer(playerid, "All houses have been reset, 5000, 2);
	return ( 1 );
}

242086.png

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.