25.05.2012, 19:23
This is my code,it updates the textlabel above the player level:
The problem is here:
error 035: argument type mismatch (argument 2)
Lines:
Basically,this code put a 3dlabel above the player head,from 1 to 3 it's "Ticketable",then i wanna destroy the label if it's wanted level 4 from 10,showing "Arrestable",but i get that errors.
pawn Код:
case 1 .. 3:
{
Ticketable[i] = Create3DTextLabel("Suspect - Ticketable",yellow,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Ticketable[i], i, 0.0, 0.0, 0.7);
DeletePlayer3DTextLabel(i, Arrestable);
SetPlayerColor(i,yellow);
}
case 4 .. 10:
{
Arrestable[i] = Create3DTextLabel("Suspect - Arrestable",red,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(Arrestable[i], i, 0.0, 0.0, 0.7);
DeletePlayer3DTextLabel(i, Ticketable);
SetPlayerColor(i,red);
error 035: argument type mismatch (argument 2)
Lines:
pawn Код:
DeletePlayer3DTextLabel(i, Arrestable);
pawn Код:
DeletePlayer3DTextLabel(i, Ticketable);