pawn Код:
CMD:ann(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid,red,"USE: /ann <texto>");
TextDrawSetString(params, newtext);
TextDrawShowForAll(Textdr0);
TextDrawShowForAll(Textdr1);
TextDrawShowForAll(Textdr2);
SetTimer("ChauAnMinigun", 10000, 1);
return 1;
}
public OnGameModeInit()
{
// Create the textdraws:
Textdr0 = TextDrawCreate(491.000000, 154.000000, "_");
TextDrawBackgroundColor(Textdr0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdr0, 0.500000, 8.000000);
TextDrawColor(Textdr0, -1);
TextDrawSetOutline(Textdr0, 0);
TextDrawSetProportional(Textdr0, 1);
TextDrawSetShadow(Textdr0, 1);
TextDrawUseBox(Textdr0, 1);
TextDrawBoxColor(Textdr0, 136);
TextDrawTextSize(Textdr0, 170.000000, 20.000000);
Textdr1 = TextDrawCreate(190.000000, 160.000000, "Evento:");
TextDrawBackgroundColor(Textdr1, 255);
TextDrawFont(Textdr1, 3);
TextDrawLetterSize(Textdr1, 0.500000, 1.000000);
TextDrawColor(Textdr1, -1);
TextDrawSetOutline(Textdr1, 1);
TextDrawSetProportional(Textdr1, 1);
Textdr2 = TextDrawCreate(181.000000, 184.000000, "_");
TextDrawBackgroundColor(Textdr2, 255);
TextDrawFont(Textdr2, 2);
TextDrawLetterSize(Textdr2, 0.780000, 2.199999);
TextDrawColor(Textdr2, -1);
TextDrawSetOutline(Textdr2, 1);
TextDrawSetProportional(Textdr2, 1);
return 1;
}
Conste que no se usar TextDraw's, pero solucione mas de un error, creo.
PD: Cuando usas comandos con strcmp, no existe "params"...