Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Izaque1998
I've looked
PHP код:
COMMAND:text(playerid, params[])
{
new texto[128];
if (sscanf(params, "is[128]", object,texto)) SendClientMessage(playerid, 0xa9c4e4ff, "/text objeto texto");
SetObjectMaterialText (object, texto , 0 , OBJECT_MATERIAL_SIZE_256x128," Arial ", 28, 0, 0xFFFF8200, 0xFF000000,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//Line error.
return 1;
}
I tried to do but gave it:
Код:
(142) : error 035: argument type mismatch (argument 2)
|
It's corrected in the quote... You were using a float in the sscanf and you didn't have a string.