SA-MP Forums Archive
[AJUDA]2 Problemas! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]2 Problemas! (/showthread.php?tid=280328)



[AJUDA]2 Problemas! - ReDKiiL - 31.08.2011

Bom Galera Estou Com Alguns Problemas

1є: Chat o Chat Sempre Corta a Primeira Letra.


Codigo:

http://pastebin.com/k2ys2fL7




2є Erro TextDraw

Erro:

Quote:

D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\relogio.pwn(29) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Public:

Quote:

forward UpdateTime(playerid);
public UpdateTime(playerid)
{
format(playeron, sizeof(playeron), "[%d/%i]",JogadoresOnline(), GetMaxPlayers());
TextDrawSetString(tdpon,playeron);
format(veiculo, sizeof(veiculo), "%s",GetVehicleVelocity,(GetPlayerVehicleID(player id),-1,-1.-1);
TextDrawSetString(velocimetro,veiculo);
gettime(hour, minute);
format(timestr,32,"%02d:%02d",hour,minute);
TextDrawSetString(txtTimeDisp,timestr);

Ps: o 1є Ja Tirei a strdel. Mais Agora Fika Aparecendo o ";" Keria Tirar Isso Pf Me Ajudam



Re: [AJUDA]2 Problemas! - RockFire - 31.08.2011

tira o strdel

e muda o format pra esse

pawn Код:
format(text2,128,"%s [ID:%d]: %s", pnametext, playerid, text[1]);



Respuesta: [AJUDA]2 Problemas! - ReDKiiL - 31.08.2011

1є Erro Arrumando Vlw Korn.

e o 2є Alguem Sabe?



Re: [AJUDA]2 Problemas! - RockFire - 31.08.2011

pawn Код:
public UpdateTime(playerid)
{
    format(playeron, sizeof(playeron), "[%d/%i]",JogadoresOnline(), GetMaxPlayers());
    TextDrawSetString(tdpon,playeron);

    format(veiculo, sizeof(veiculo), "%s",GetVehicleVelocity(GetPlayerVehicleID(playerid) );
    TextDrawSetString(velocimetro,veiculo);

    gettime(hour, minute);
    format(timestr,32,"%02d:%02d",hour,minute);
    TextDrawSetString(txtTimeDisp,timestr);

    return 1;
}



Respuesta: [AJUDA]2 Problemas! - ReDKiiL - 31.08.2011

Rock:

Quote:

D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\relogio.pwn(30) : warning 202: number of arguments does not match definition
D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\relogio.pwn(30) : warning 202: number of arguments does not match definition
D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\relogio.pwn(30) : warning 202: number of arguments does not match definition
D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\relogio.pwn(30) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Linha:

format(veiculo, sizeof(veiculo), "%s",GetVehicleVelocity(GetPlayerVehicleID(playeri d) );



Re: [AJUDA]2 Problemas! - Shadoww5 - 31.08.2011

https://sampwiki.blast.hk/wiki/GetVehicleVelocity