[Ajuda] Erro na gm
#1

minha gm ta dando esse erros nao to conseguindo resolver pode ser facil mais nao to conseguindo me ajuda pf

Code:
Core.pwn(436) : error 001: expected token: ",", but found "sizeof"
Core.pwn(436) : warning 215: expression has no effect
Core.pwn(436) : warning 215: expression has no effect
Core.pwn(436) : error 012: invalid function call, not a valid address
Core.pwn(436) : warning 215: expression has no effect
Core.pwn(436) : error 001: expected token: ";", but found ")"
Core.pwn(436) : fatal error 107: too many error messages on one line
essa e linha do erro
Code:
format(string, sizeof(string), "~r~Nick: ~w~%s", pNome(playerid));
codigo completo

Code:
public OnPlayerUpdate(playerid)
{
new string[46], pNome[24];
    GetPlayerName(playerid, pNome, 24);

    format(string sizeof(string), "~r~Nick: ~w~%s", pNome(playerid));
    PlayerTextDrawSetString(playerid, Textdraw1[playerid][0], string);
    PlayerTextDrawShow(playerid, Textdraw1[playerid][0]);
}
Reply
#2

'-'

Tu manda a linha do erro corrigida depois manda a que estб errada?

Errado: format(string sizeof(string), "");
Correto: format(string, sizeof(string), "");
Reply
#3

Tenta ai:

public OnPlayerUpdate(playerid)
{
new string[46], pNome[24];
GetPlayerName(playerid, pNome, 24);

format(string, sizeof(string), "~r~Nick: ~w~%s", pNome(playerid));
PlayerTextDrawSetString(playerid, Textdraw1[playerid][0], string);
PlayerTextDrawShow(playerid, Textdraw1[playerid][0]);
}
Reply
#4

PHP Code:
format(string sizeof(string), "~r~Nick: ~w~%s"pNome); 
Reply
#5

Quote:
Originally Posted by Don_Speed
View Post
PHP Code:
format(string sizeof(string), "~r~Nick: ~w~%s"pNome); 
PHP Code:
format(stringsizeof(string), "~r~Nick: ~w~%s"pNome); 
...
Reply
#6

Galera tente de tudo mais acho que vou te que refazer o codigo porque nada ta dando certo
Reply
#7

Quote:
Originally Posted by Don_Speed
View Post
PHP Code:
format(string sizeof(string), "~r~Nick: ~w~%s"pNome); 
Falta uma virgula cidadгo .
PHP Code:
format(stringsizeof(string), "~r~Nick: ~w~%s"pNome); 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)