A tutorial for me please?
#1

Can someone explain me about BroadcastCommand ?
Reply
#2

What is that? A include? Function? I have never see that before.
Reply
#3

A function
Reply
#4

I never heard of it, where did you see broadcastCommand anyways?
There isnt such function, here's all the scripting functions:
wiki.sa-mp.com/wiki/Category:Scripting_Functions
Reply
#5

.. Example of the code?
Reply
#6

Quote:
Originally Posted by MicroKyrr
Посмотреть сообщение
.. Example of the code?
PHP код:
YCMD:export(playeridarg[], help)
{
    if(
help)
    {
        
SendClientMessage(playeridSTEALTH_ORANGE"______________________________________________");
        
SendClientMessage(playeridSTEALTH_GREEN"Export current map.");
        return 
1;
    }
    
MapOpenCheck();
    
inline Export(epidedialogideresponseelistitemstring:etext[])
    {
        
#pragma unused elistitem, edialogid, epid, etext
        
if(eresponse)
        {
            switch(
elistitem)
            {
                case 
0BroadcastCommand(playerid"/exportmap");
                case 
1BroadcastCommand(playerid"/exportallmap");
                case 
2BroadcastCommand(playerid"/avexport");
                case 
3BroadcastCommand(playerid"/avexportall");
            }
        }
    }
    
Dialog_ShowCallback(playeridusing inline ExportDIALOG_STYLE_LIST"Texture Studio (Export Mode)""Export Map\nExport All Map To Filerscript\nExport Current Car\nExport All Cars""Ok""Cancel");
    return 
1;

Reply
#7

Quote:
Originally Posted by radiobizza
Посмотреть сообщение
PHP код:
YCMD:export(playeridarg[], help)
{
    if(
help)
    {
        
SendClientMessage(playeridSTEALTH_ORANGE"______________________________________________");
        
SendClientMessage(playeridSTEALTH_GREEN"Export current map.");
        return 
1;
    }
    
MapOpenCheck();
    
inline Export(epidedialogideresponseelistitemstring:etext[])
    {
        
#pragma unused elistitem, edialogid, epid, etext
        
if(eresponse)
        {
            switch(
elistitem)
            {
                case 
0BroadcastCommand(playerid"/exportmap");
                case 
1BroadcastCommand(playerid"/exportallmap");
                case 
2BroadcastCommand(playerid"/avexport");
                case 
3BroadcastCommand(playerid"/avexportall");
            }
        }
    }
    
Dialog_ShowCallback(playeridusing inline ExportDIALOG_STYLE_LIST"Texture Studio (Export Mode)""Export Map\nExport All Map To Filerscript\nExport Current Car\nExport All Cars""Ok""Cancel");
    return 
1;

Maybe this will send you the usage of cmd ? Forcecmd?

Try to Ctrl+F and find BroadCastCommand again , I'm pretty sure it's stock ?
Reply
#8

There are neither include or like a stock
Reply
#9

Bump !
Reply
#10

Find the include or stock in your code. Can you test that code and tell us how it works . Etc . It will send you the command or blabla
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)