[Ajuda] O que hб de errado nisso? :@
#1

PHP Code:
CMD:an(playeridparams[])
{
    new 
t[426], TempoResTextonome[24], TextoChatString[128];
    if(
sscanf(params"s[426]"t)) return SendClientMessage(playerid0xFF0000FF"/An [ Mensagem ]");
    
format(Stringsizeof(String), "~g~%s~w~: %s",nome(playerid), t);
    
TextDrawSetString(TextoChat,String);
    
TextDrawShowForAll(TextoChat);
    
TempoResTexto SetTimer("FecharTexto"8000false);
    
TempoResTexto--;
    return 
1;

error 001: expected token: ";", but found ")"

linha:

PHP Code:
format(Stringsizeof(String), "~g~%s~w~: %s",nome(playerid), t); 
Reply
#2

pawn Code:
format(String, sizeof(String), "~g~%s~w~: %s",nome, t);
Reply
#3

pawn Code:
CMD:an(playerid, params[])
{
    new t[426], TempoResTexto, nome[24], TextoChat, String[128];
    if(sscanf(params, "s[426]", t)) return SendClientMessage(playerid, 0xFF0000FF, "/An [ Mensagem ]");
    format(String, sizeof(String), "~g~%s~w~: %s",nome, t); //Linha Editada < Erro era o (playerid)
    TextDrawSetString(TextoChat,String);
    TextDrawShowForAll(TextoChat);
    TempoResTexto = SetTimer("FecharTexto", 8000, false);
    TempoResTexto--;
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)