Jump to content
  • 0

pomoc [Help]Rcon-Mazanie chatu


Guest MiNNo

Dotaz

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...