Jump to content
  • 0

pomoc Problém s PlayerName


Gameluner

Dotaz

Popis problému:

Zdravím, mám problém s tím, že po napsání příkazu /test spadne server, místo aby to vypsalo daný text.

 

Chyby/varování kompilátoru a při běhu:

warning 202: number of arguments does not match definition

 

Kód:

 

stock PlayerName(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
return pname;
}

CMD:test(playerid, params[])
{
SendClientMessageToAll(0xFF000000, "Tady něco %s A tady něco", PlayerName(playerid));
return 1;
}

 

 

 

Dodatečné poznámky:

Includy mám, toto je jen výtažek toho nejdůležitějšího.

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...