increase house list text for spawn

This commit is contained in:
Damen 2019-04-09 01:12:58 -04:00
parent c95767b7fa
commit d947770328
2 changed files with 4 additions and 3 deletions

View File

@ -41,6 +41,7 @@ stock szNormalString[ 144 ];
stock szBigString[ 256 ];
stock szLargeString[ 1024 ];
stock szHugeString[ 2048 ];
stock szMassiveString[ 4096 ];
stock g_szSprintfBuffer[ 1024 ];
stock tmpVariable;

View File

@ -5594,7 +5594,7 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
new bool: has = false;
// erase large string for ease
erase( szHugeString );
erase( szMassiveString );
erase( szLargeString );
// show items
@ -5611,13 +5611,13 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
case 1:
{
foreach ( new i : houses ) if ( strmatch( g_houseData[ i ] [ E_OWNER ], ReturnPlayerName( playerid ) ) ) {
format( szHugeString, sizeof( szHugeString ), "%s%s\n", szHugeString, g_houseData[ i ] [ E_HOUSE_NAME ] ), has = true;
format( szMassiveString, sizeof( szMassiveString ), "%s%s\n", szMassiveString, g_houseData[ i ] [ E_HOUSE_NAME ] ), has = true;
}
if ( ! has )
return SendError( playerid, "You do not own any home." ), ShowPlayerSpawnMenu( playerid );
return ShowPlayerDialog( playerid, DIALOG_HOUSES, DIALOG_STYLE_LIST, "{FFFFFF}Set Spawn Location", szHugeString, "Select", "Back" );
return ShowPlayerDialog( playerid, DIALOG_HOUSES, DIALOG_STYLE_LIST, "{FFFFFF}Set Spawn Location", szMassiveString, "Select", "Back" );
}
// businesses