HELP dialog
#1

Hi can anyone help? I put couple object in house, furniture. in mySQL it shows okay without any symbols but look how it shows in dialog also I make /n to put into next line but it's not working.
Reply
#2

any help??
Reply
#3

Bump once each 24 hours and I suggest you to post your code so any helper can know what you are doing and what you are missing.
Reply
#4

You should use a back-slash to create a new line instead of the forward slash:

pawn Код:
\n
Reply
#5

Quote:

if(IsPlayerInHouse( playerid ))
{
for( new fid; fid < MAX_FURNITURES; fid++ )
{
if( HouseFurniture[ fid ][ fHouseId ] == hInfo[ GetPlayerHouse( playerid ) ][ hID ] )
{
format( string, sizeof( string ), "%sObject %d: %s\n", string, slot, HouseFurniture[ fid ][ fName ] );
PlayerSlots[ playerid ][ slot ] = fid;
slot++;
rado = 1;
}
}
}
else if(IsPlayerInBusiness( playerid ))
{
for( new fid; fid < MAX_FURNITURES; fid++ )
{
if( BizzFurniture[ fid ][ fHouseId ] == bInfo[ GetPlayerBusiness( playerid ) ][ bID ] )
{
format( string, sizeof( string ), "%sObject %d: %s\n", string, slot, BizzFurniture[ fid ][ fName ] );
PlayerSlots[ playerid ][ slot ] = fid;
slot++;
rado = 1;
}
}
}

This is the code, I do that #Schneider.
Reply
#6

....wrong thread. I'm sorry.
Reply
#7

Are you using a global 'string'. Like do you have 'new string[...]' at the top of your script?

You should not do that if you gonna format that same string. It will put the previous, not-relevant, string into it.
So just make a new local string.

pawn Код:
new string2[128] = " ";
format( string2, sizeof( string2 ), "%sObject %d: %s\n", string2, slot, HouseFurniture[ fid ][ fName ] );
Reply
#8

anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)