HELP dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP dialog (
/showthread.php?tid=558909)
HELP dialog -
Erno. - 19.01.2015
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.
Re: HELP dialog -
Erno. - 19.01.2015
any help??
Re: HELP dialog -
Clad - 19.01.2015
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.
Re: HELP dialog -
Schneider - 19.01.2015
You should use a back-slash to create a new line instead of the forward slash:
Re: HELP dialog -
Erno. - 20.01.2015
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.
Re: HELP dialog -
Luca12 - 20.01.2015
....wrong thread. I'm sorry.
Re: HELP dialog -
Schneider - 20.01.2015
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 ] );
Re: HELP dialog -
Erno. - 24.01.2015
anyone?