tdimgduck = CreatePlayerTextDraw(playerid,538.000000, 409.000000, "ooo");
PlayerTextDrawBackgroundColor(playerid,tdimgduck, 255);
PlayerTextDrawFont(playerid,tdimgduck, 1);
PlayerTextDrawLetterSize(playerid,tdimgduck, 0.449999, 0.899999);
PlayerTextDrawColor(playerid,tdimgduck, -1);
PlayerTextDrawSetOutline(playerid,tdimgduck, 0);
PlayerTextDrawSetProportional(playerid,tdimgduck, 1);
PlayerTextDrawSetShadow(playerid,tdimgduck, 1);
PlayerTextDrawUseBox(playerid,tdimgduck, 1);
PlayerTextDrawBoxColor(playerid,tdimgduck, 0);
PlayerTextDrawTextSize(playerid,tdimgduck, 569.000500, 12.000500);
PlayerTextDrawSetSelectable(playerid,tdimgduck, 1);
if(clickedid == Text:tdimgduck)
{
SendClientMessage(playerid, -1, "oi");
if (ButtonWasClicked[playerid] == 0)
{
ButtonWasClicked[playerid] = 1;
PlayerTextDrawHide(playerid, PlayerText:score);
return 1;
}
else
{
ButtonWasClicked[playerid] = 0;
PlayerTextDrawShow(playerid, PlayerText:score);
}
}
printf("%d - %d", clickedid,tdimgduck);
C:\Ruan/Desktop/samp-server/testes.pwn(263) : warning 213: tag mismatch C:\Ruan/Desktop/samp-server/testes.pwn(263) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
printf ( "%d - %d" , _:clickedid,_:tdimgduck);
|
enquanto eu estava tomando banho, lembrei q eu tinha botado variaves assim:
new tdimgduck[MAX_PLAYERS]; new tdimgduck1[MAX_PLAYERS]; new tdimgduck2[MAX_PLAYERS]; new tdimgduck3[MAX_PLAYERS]; por causa do numero q nao tava dando .. Й CADA COISA BOBA nй outra coisa tmb, eu estava colocando na callback OnPlayerClickTextDraw, deveria ter colocado na OnPlayerClickPlayerTextDraw... RESOLVIDO +rep pra mim |