[Ajuda] Velocimetro
#1

Tou com um problema no velocimetro quando vou compilar.

pawn Код:
new.pwn(242) : error 028: invalid subscript (not an array or too many subscripts): "Velocimetro"
warning 215: expression has no effect
new.pwn(242) : error 001: expected token: ";", but found "]"
new.pwn(242) : error 029: invalid expression, assumed zero
new.pwn(242) : fatal error 107: too many error messages on one line

4 Errors.
pawn Код:
public OnPlayerUpdate(playerid)
{
    new String[80];
    format(String, sizeof(String),"KM/H: %d",GetPlayerSpeed(playerid));
    TextDrawSetString(Velocimetro[playerid],String);             --------------  linha 242
    return 1;
}
Reply
#2

Vocк criou o textdraw de maneira errada ,
como ta a new dele ?
ex :
PHP код:
new Text:Velocimetro[MAX_PLAYERS]; 
Reply
#3

Resolvido. e.e'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)