How?? - 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: How?? (
/showthread.php?tid=424625)
How?? -
DerickClark - 23.03.2013
how i make dis? they can edit it
Re: How?? -
PaulDinam - 23.03.2013
ObjectTextMaterial
https://sampwiki.blast.hk/wiki/SetObjectMaterialText
Re: How?? -
DerickClark - 23.03.2013
can i do it with zcmd?
Re: How?? -
Glad2BeHere - 23.03.2013
pawn Код:
CMD:sign(playerid, params[])
{
new string[256];
if(sscanf(params, "s[256]", params)) return SendClientMessage(playerid, -1, "/sign [Text]");
format(string, 256, "%s", params);
new myobject = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0);
SetObjectMaterialText(myobject, string, 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 28, 0, 0xFFFF8200, xFF000000,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
return 1;
}
ZCMD + SSCANF
Re: How?? -
DerickClark - 23.03.2013
Thanks Glad2BeHere but i got errors
Код:
error 017: undefined symbol "SetObjectMaterialText"
warning 204: symbol is assigned a value that is never used: "myobject"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: How?? -
Glad2BeHere - 23.03.2013
pawn Код:
CMD:sign(playerid, params[])
{
new string[256];
new Float: pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
if(sscanf(params, "s[256]", params)) return SendClientMessage(playerid, -1, "/sign [Text]");
format(string, 256, "%s", params);
new myobject = CreateObject(19353, pos[0], pos[1], pos[2], 0.0, 0.0, pos[3]);
SetObjectMaterialText(myobject, string, 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 28, 0, 0xFFFF8200,0xFF000000,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
return 1;
}
Re : How?? -
DerickClark - 23.03.2013
it keep geting me errors
Код:
error 017: undefined symbol "SetObjectMaterialText"
warning 204: symbol is assigned a value that is never used: "myobject"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: How?? -
Glad2BeHere - 23.03.2013
What version is your server?
This function was added in SA-MP 0.3e and will not work in earlier versions
Re: How?? -
DerickClark - 23.03.2013
0.3x
Re: How?? -
Glad2BeHere - 23.03.2013
Quote:
Originally Posted by Glad2BeHere
pawn Код:
CMD:sign(playerid, params[]) { new string[256]; new Float: pos[4]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); GetPlayerFacingAngle(playerid, pos[3]); if(sscanf(params, "s[256]", params)) return SendClientMessage(playerid, -1, "/sign [Text]"); format(string, 256, "%s", params); new myobject = CreateObject(19353, pos[0], pos[1], pos[2], 0.0, 0.0, pos[3]); SetObjectMaterialText(myobject, string, 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 28, 0, 0xFFFF8200,0xFF000000,OBJECT_MATERIAL_TEXT_ALIGN_CENTER); return 1; }

|
Then How did u thise code and still Get Error Do u have it lined up properly
Edit: do u have ur #include <a_samp>