Dialogs are giving me a hard time tonight - 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: Dialogs are giving me a hard time tonight (
/showthread.php?tid=372330)
Dialogs are giving me a hard time tonight -
2KY - 26.08.2012
What's the problem with this?
pawn Код:
case DIALOG_HOUSEEDIT + 8: // Editing the house owner
{
if( response )
{
new
plName [ MAX_PLAYER_NAME ];
GetPlayerName( strval( inputtext), plName, MAX_PLAYER_NAME );
format( houStats [ plEditingHouse [ playerid ] ] [ HouseOwner ], plName, MAX_PLAYER_NAME );
}
else return plEditingHouse [ playerid ] = -1;
}
It's giving me a tag mismatch on plName on the format.
Re: Dialogs are giving me a hard time tonight -
Ballu Miaa - 26.08.2012
pawn Код:
GetPlayerName( plName, plName, MAX_PLAYER_NAME );
Why did you add strval inputtext in here?
Re: Dialogs are giving me a hard time tonight -
ReneG - 26.08.2012
Quote:
Originally Posted by Ballu Miaa
pawn Код:
GetPlayerName( plName, plName, MAX_PLAYER_NAME );
Why did you add strval inputtext in here?
|
strval(inputtext) is the integer form of what the player typed in, which is a playerid. The first parameter in GetPlayerName is the playerid.
Also, 2KY, the parameters for format() are
pawn Код:
format(output[], len, const format[], {Float,_}:...);
Re: Dialogs are giving me a hard time tonight - HuSs3n - 26.08.2012
where is the length ?
pawn Код:
format( houStats [ plEditingHouse [ playerid ] ] [ HouseOwner ], plName, MAX_PLAYER_NAME );
format(output[],
len, const format[], {Float,_}:...);