Jump to content

[REZOLVAT] Problema - Sistem clan


Ionut09
 Share

Recommended Posts

  • Username : Ionut09
  • Problema întâlnită: Cand dau restart la server, banii din seif se iau iar de la 0, iar la clan zones nu apare de cine e detinut, iar daca ma duc sa ii dau /spray, zice ca o detin deja.
  • Detalii despre problemă: -
  • Ce ai încercat să faci înainte să postezi?:-
  • Cod sursa (recomandat pastebin.com) : https://pastebin.com/zY7dGWDW
  • Alte detalii : Banii ii fac cand dau spray. https://pastebin.com/ebeZYfjc
Link to comment
Share on other sites

6 hours ago, Leonard said:

Arata functia de load la clanuri.

Mai intai uita-te in coduri, nu este sa selecteze din tabel pentru turfs, iar la seif nu e sa salveze, iar eu nu stiu sa fac, am incercat, dar nu mi-a mers.

function LoadClanVariables( ) {
	serverClans = cache_num_rows( );
	for( new i = 1; i <= serverClans; i++ ) {
		clanVariables[ i ][ clanID ] = cache_get_field_content_int( i - 1, "clanID" );
		clanVariables[ i ][ clanSlots ] = cache_get_field_content_int( i - 1, "clanSlots" );
		clanVariables[ i ][ clanSafe ] = cache_get_field_content_int( i - 1, "clanSafe" );
		cache_get_field_content( i - 1, "clanName", clanVariables[ i ][ clanName ], SQL, 50 );
		cache_get_field_content( i - 1, "clanTag", clanVariables[ i ][ clanTag ], SQL, 20 );
		cache_get_field_content( i - 1, "clanColor", clanVariables[ i ][ clanColor ], SQL, 20 );
		cache_get_field_content( i - 1, "clanRankName1", clanVariables[ i ][ clanRankName1 ], SQL, 32 );
		cache_get_field_content( i - 1, "clanRankName2", clanVariables[ i ][ clanRankName2 ], SQL, 32 );
		cache_get_field_content( i - 1, "clanRankName3", clanVariables[ i ][ clanRankName3 ], SQL, 32 );
		cache_get_field_content( i - 1, "clanRankName4", clanVariables[ i ][ clanRankName4 ], SQL, 32 );
		cache_get_field_content( i - 1, "clanRankName5", clanVariables[ i ][ clanRankName5 ], SQL, 32 );
		cache_get_field_content( i - 1, "clanRankName6", clanVariables[ i ][ clanRankName6 ], SQL, 32 );
		cache_get_field_content( i - 1, "clanRankName7", clanVariables[ i ][ clanRankName7 ], SQL, 32 );
	} printf( "Clans: %d", serverClans );
	return true; }

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...