Gameluner 3 Odesláno: 27. Srpen, 2017 Share Odesláno: 27. Srpen, 2017 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 More sharing options...
0 Invouk 91 Odesláno: 27. Srpen, 2017 Share Odesláno: 27. Srpen, 2017 new string[256];format(string, sizeof(string), "Tady něco %s A tady něco", PlayerName(playerid));SendClientMessageToAll(-1, string); Link to comment Share on other sites More sharing options...
0 Rawy 18 Odesláno: 27. Srpen, 2017 Share Odesláno: 27. Srpen, 2017 Na to musíš použít formátování http://wiki.sa-mp.com/wiki/Format Přečti si toto, mělo by ti to pomoct Link to comment Share on other sites More sharing options...
0 Gameluner 3 Odesláno: 27. Srpen, 2017 Author Share Odesláno: 27. Srpen, 2017 Moc děkuji, určitě si to přečtu. Link to comment Share on other sites More sharing options...
Dotaz
Gameluner 3
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:
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