Talán..:
dcmd_smtl( playerid, params[ ] )
{
new string[ 128 ];
if( sscanf( params, \"s[128]\", string ) ) return SendClientMessage( playerid, 0x00FFFFFF, \"Használat: /smtl <szöveg>\" );
{
new PlayerText3D:i_Text;
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z );
format( string, 128,\"{F216FA}Kiraktál egy{00EEFF}szöveget a {FAD900}fölé: {00FF88}%s\", string );
i_Text = CreatePlayer3DTextLabel( playerid, string, 0x008080FF, X, Y ,Z, 40.0 );
Attach3DTextLabelToPlayer( i_Text, playerid, 0.0, 0.0, 0.7 );
PlayerPlaySound( playerid, 1133, 0.0, 0.0, 0.0 );
}
return 1;
}
Köszi,de kidob 2 error-t!
C:\\Users\\Atar\\Desktop\\próba.pwn(59) : error 029: invalid expression, assumed zero
C:\\Users\\Atar\\Desktop\\próba.pwn(61) : error 035: argument type mismatch (argument 2)
C:\\Users\\Atar\\Desktop\\próba.pwn(61) : warning 204: symbol is assigned a value that is never used: \"playertextid\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
59. sor:else
61.sor:
playertextid = CreatePlayer3DTextLabel(playerid,X,Y,Z,40.0);