Does not work.UNKNOWN COMMAND.
#3

pawn Код:
#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(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    return 1;
}
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;
}
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)