Jump to content
  • 0

pomoc Problem s textem v prikazu


ffredyk

Dotaz

  • Majitel

Ahoj potreboval bych skript (/console [text]), ktery by po napsani "/console Ahoj!" napsal do chatu "Konzole: Ahoj!". Nevim jak na to.. :( ZKousel jsem to pres dcmd ale neuspesne kopiroval jsem z nejakejch tutu na forkach a wiki, ale porad nic :(. Poradite nekdo? Potreboval bych to opravdu nutne a rychle ....

Link to comment
Share on other sites

15 odpovědí na tuto otázku

Recommended Posts

  • 0

nejak sem to nepochopil s tim textdraw a toto by se ti nehodilo?

dcmd(console,7,cmdtext);

dcmd_console(playerid, params[])
{
new consoletext[256];
if(!params[0]) return SendClientMessage(playerid,COLOR_SYSTEM,"[!] Použití /console [TEXT]");
format(consoletext, sizeof(inzerattext), "Konzole: %s", params);
SendClientMessageToAll(COLOR_WHITE, consoletext);
return 1;
}

Link to comment
Share on other sites

  • 0
  • Majitel

Po male uprave stale jeden error jako vzdy :(:

 

c:\Program Files\Rockstar Games\GTA San Andreas\pawno\bot.pwn(130) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

 

na radku 130:

dcmd(console,4,cmdtext);

nad radkem je { a nad tim je pulic OnPlayerCommandtext(playerid, cmdtext[])

pod radkem je akorat } pak uz je dalsi public :(

Link to comment
Share on other sites

  • 0
  • Majitel

Tdy mam ten kod po uprave...

 

dcmd_fbot(playerid, params[])

{

new consoletext[256];

if(!params[0]) return SendClientMessage(playerid,COLOR_BOT,"[!] Použití /fbot [TEXT]");

format(consoletext, sizeof(consoletext), "%s", params);

SendBotMessage(consoletext);

return 1;

}

 

public OnPlayerCommandText(playerid, cmdtext[])

{

dcmd(fbot,7,cmdtext);

}

 

toho SendBotMessage si nevsimejte je to upraveny script ze samp fora....

Link to comment
Share on other sites

  • 0

este do OnPlayerCOmmandText si hod return 0; dufam ze vies de ale to chybu venyriesi ale ten return tam byt musi popr si hod return SCM(playerid, farba,"Neznamy prikaz");

Link to comment
Share on other sites

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...