28.01.2012, 01:00
Good Job, man.
Text: uMsgBox_Content [ MAX_PLAYERS char ];
If i remember correctly, char arrays hold up values from 0 to 128. Then again, textdraws can have ID's up to 2048.
So, pawn Код:
And you didn't mention anything about the box size. Ex. does the text move to the next line by it self, or do you have to use ~n~? |
stock uBox( playerid, rtext[ ], time )
{
new sH_BoX[ 200 ];
format( sH_BoX, sizeof( sH_BoX ), "%s", rtext );
if( rText_Viewing( playerid ) )
rText_Update( playerid, sH_BoX, true, time );
else
rText_Show( playerid, sH_BoX, time );
return 1;
}
CMD:blabla( playerid )
{
uBox( playerid, "blabla", 5 );
return 1;
}