[AJUDA] Erro comando /dia /noite /tarde
#1

Comando:
pawn Код:
if (strcmp("/dia", cmdtext, true) == 0)
{
    GameTextForPlayer(2,COLOR_WHITE,"~w~ Mudou para ~r~Dia",1000,1);
    SendClientMessage(2,COLOR_WHITE,"Você mudou o tempo para Dia!");
    SetPlayerTime(playerid, 12,0);
    return 1;
}
if (strcmp("/noite", cmdtext, true) == 0)
{
    GameTextForPlayer(playerid,COLOR_WHITE,"~w~ Mudou para ~r~Noite",1000,1);
    SendClientMessage(playerid,COLOR_WHITE,"Você mudou o tempo para Noite!");
    SetPlayerTime(playerid, 00,0);
    return 1;
}
if (strcmp("/tarde", cmdtext, true) == 0)
{
    GameTextForPlayer(playerid,COLOR_YELLOW,"~w~ Mudou para ~r~Tarde",1000,1);
    SendClientMessage(playerid,COLOR_YELLOW,"Você mudou o tempo para Tarde!");
    SetPlayerTime(playerid, 06,0);
    return 1;
}
Erros:
Код:
C:\Users\Gabriel.Gabriel-PC\Desktop\sv 2\TE.pwn(343) : error 035: argument type mismatch (argument 2)
C:\Users\Gabriel.Gabriel-PC\Desktop\sv 2\TE.pwn(350) : error 035: argument type mismatch (argument 2)
C:\Users\Gabriel.Gabriel-PC\Desktop\sv 2\TE.pwn(357) : error 035: argument type mismatch (argument 2)
Reply
#2

pawn Код:
if (strcmp(cmdtext, "/dia", true) == 0)
{
    GameTextForPlayer(playerid, "~w~ Mudou para ~r~Dia", 1000, 1);
    SendClientMessage(playerid, COLOR_WHITE, "Vocк mudou o tempo para Dia!");
    SetPlayerTime(playerid, 12, 0);
    return 1;
}
if (strcmp(cmdtext, "/noite", true) == 0)
{
    GameTextForPlayer(playerid, "~w~ Mudou para ~r~Noite", 1000, 1);
    SendClientMessage(playerid, COLOR_WHITE, "Vocк mudou o tempo para Noite!");
    SetPlayerTime(playerid, 0, 0);
    return 1;
}
if (strcmp(cmdtext, "/tarde", true) == 0)
{
    GameTextForPlayer(playerid, "~w~ Mudou para ~r~Tarde", 1000, 1);
    SendClientMessage(playerid, COLOR_YELLOW, "Vocк mudou o tempo para Tarde!");
    SetPlayerTime(playerid, 6, 0);
    return 1;
}
Espero ter ajudado.
Reply
#3

Erro Ta Nisso!

Nos GameTextForPlayer

GameTextForPlayer(2,COLOR_WHITE,"~w~ Mudou para ~r~Dia",1000,1);

Em Vez De:
GameTextForPlayer(2,COLOR_WHITE,"
Mude Para:
GameTextForPlayer(playerid, "
Reply
#4

Aconselho usar o do Dreeh *-*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)