Does not work.UNKNOWN COMMAND.
#1

PHP код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Blank Filterscript by your name here");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Blank Gamemode by your name here");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
CMD:minus(playerid,params[])
    {
        new 
Float:f1,Float:f2;
        if(
sscanf(params,"ff",f1,f2)) return SendClientMessage(playerid,-1,"Usage: /minus <first value><second value>");
        new 
Float:output f1-f2;
        new 
string[128];
        
format(string,sizeof(string),"Your answer is: %f",output);
        
SendClientMessage(playerid,-1,string);
        return 
1;
    }
CMD:multiplay(playerid,params[])
    {
        new 
Float:f1,Float:f2;
        if(
sscanf(params,"ff",f1,f2)) return SendClientMessage(playerid,-1,"Usage: /multiplay <first value><second value>");
        new 
Float:output f1*f2;
        new 
string[128];
        
format(string,sizeof(string),"Your answer is: %f",output);
        
SendClientMessage(playerid,-1,string);
        return 
1;
    }
CMD:plus(playerid,params[])
    {
        new 
Float:f1,Float:f2;
        if(
sscanf(params,"ff",f1,f2)) return SendClientMessage(playerid,-1,"Usage: /plus <first value><second value>");
        new 
Float:output f1+f2;
        new 
string[128];
        
format(string,sizeof(string),"Your answer is: %f",output);
        
SendClientMessage(playerid,-1,string);
        return 
1;
    }
CMD:divide(playerid,params[])
    {
        new 
Float:f1,Float:f2;
        if(
sscanf(params,"ff",f1,f2)) return SendClientMessage(playerid,-1,"Usage: /divide <first value><second value>");
        new 
Float:output f1/f2;
        new 
string[128];
        
format(string,sizeof(string),"Your answer is: %f",output);
        
SendClientMessage(playerid,-1,string);
        return 
1;
    }
return 
0;

Okay I tried to make a filterscript but it does not work.It says unknown command.Please can someone fix this for me.
Reply


Messages In This Thread
Does not work.UNKNOWN COMMAND. - by TaLhA XIV - 11.08.2012, 18:28
Re: Does not work.UNKNOWN COMMAND. - by phillip875 - 11.08.2012, 18:29
Re: Does not work.UNKNOWN COMMAND. - by RedJohn - 11.08.2012, 19:06

Forum Jump:


Users browsing this thread: 1 Guest(s)