Guest MiNNo Odesláno: 16. Leden, 2009 Share Odesláno: 16. Leden, 2009 Tak pozeral som tut od frenklina ale chcel by som si urobit prikaz mazanie chatu ale nie cez dcmd je to takto : if(strcmp(cmdtext, "/clearchat", true) == 0 && IsPlayerAdmin(playerid))//playti pro RCON admini { for(new c=0;c<45;c++) SendClientMessageToAll(COLOR_WHITE," ");//45=naspamuje 45 řadku bila barva v chatu format(string, sizeof(string), "[*--*] Chat promazan", PlayerName(playerid));//posledni radek ukaze co se stalo SendClientMessageToAll(COLOR_RED, string);//vsem hracum tedy ALL return 1;//ukonceni prikazu } a hadze tento error : C:\Documents and Settings\user\Plocha\zaloha1.pwn(206) : error 017: undefined symbol "PlayerName" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. PS: Vravim je to od frenka... Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 16. Leden, 2009 Share Odesláno: 16. Leden, 2009 stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } Link to comment Share on other sites More sharing options...
0 Guest MiNNo Odesláno: 16. Leden, 2009 Share Odesláno: 16. Leden, 2009 Dik errory nehadze,ale nelockujte este som netestoval v hre.. Link to comment Share on other sites More sharing options...
Dotaz
Guest MiNNo
Tak pozeral som tut od frenklina ale chcel by som si urobit prikaz mazanie chatu ale nie cez dcmd je to takto :
if(strcmp(cmdtext, "/clearchat", true) == 0 && IsPlayerAdmin(playerid))//playti pro RCON admini
{
for(new c=0;c<45;c++) SendClientMessageToAll(COLOR_WHITE," ");//45=naspamuje 45 řadku bila barva v chatu
format(string, sizeof(string), "[*--*] Chat promazan", PlayerName(playerid));//posledni radek ukaze co se stalo
SendClientMessageToAll(COLOR_RED, string);//vsem hracum tedy ALL
return 1;//ukonceni prikazu
}
a hadze tento error :
C:\Documents and Settings\user\Plocha\zaloha1.pwn(206) : error 017: undefined symbol "PlayerName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
PS: Vravim je to od frenka...
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now