SScanf scripting, making a command.
#6

Yep, ZCMD. I just fixed something. I made a command. But it doesnt work. Can you fix it for me? I get 0 errors

pawn Код:
CMD:acmds(playerid, params[])
{
    new string[128],msg[128],pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pname,sizeof(pname));
    if(sscanf(params,"sz",msg)) return SendClientMessage(playerid,COLOR_RED, "
    {1, "
/asay, /bike, /boat, /car, /endspec
    {1, "/endspec",
    {1, "/engine <EngineStatus (0/1)>",
    {1, "/freeze <OtherPlayer> <Duration> <Reason>",
    {1, "/fuel",
    {1, "/get <OtherPlayer>",
    {1, "/jail <PlayerToJail> <JailTime> <Reason>",
    {1, "/kick <PlayerToKick> <Reason>",
    {1, "/mutes",
    {1, "/nos",
    {1, "/plane",
    {1, "/port <OtherPlayer>",
    {1, "/portloc <x> <y> <z>",
    {1, "/portvehicle <CarID>",
    {1, "/rep",
    {1, "/repair",
    {1, "/respawn <Vehicle-id>",
    {1, "/spec <OtherPlayer>",
    {1, "/tele <PlayerToPort> <TargetPlayer>",
    {1, "/trailer",
    {1, "/unmute <OtherPlayer>",
    {1, "/warn <PlayerToWarn> <Reason>",
    {2, "/eject <OtherPlayer>",
    {2, "/wanted <PlayerID> <Stars>",
    {3, "/ban <PlayerToBan> <Days> <Hours> <Reason>",
    {3, "/caroption",
    {3, "/cleanupcars",
    {3, "/fly",
    {3, "/healall",
    {3, "/ipban <PlayerToBan> <Reason>",
    {3, "/loc",
    {3, "/plate <NumberPlate>",
    {3, "/rangeban <PlayerToBan> <Reason>",
    {3, "/repairall",
    {3, "/setscore <OtherPlayer> <Score>",
    {3, "/unban <PlayerToUnban>",
    {4, "/cash <amount>",
    {4, "/score <amount>",
    {4, "/setskin <skin-id (0-299)>",
    {4, "/weather",
    {5, "/clamp , /vehicle, /createbusiness, /createcamera, /createhouse, /delbusiness,"
    {5, "/delcamera
    {5, "
/delhouse",
    {5, "
/delobject <ObjectID>",
    {5, "
/delvehicle <VehicleID>",
    {5, "
/fixplayer <OtherPlayer>",
    {5, "
/object <ObjectModel> <x> <y> <z> <Angle>",
    {5, "
/pickup <PickupModel> <x> <y> <z> <PickupType>",
    {5, "
/resetplayer <OtherPlayer> <Money (0/1)> <Score (0/1)> <Stats (0/1)> <Reason>",
    {5, "
/restart",
    {5, "
/saveloc <ID> <LocationName>",
    {5, "
/setlevel <OtherPlayer> <AdminLevel>",
    {5, "
/vehicle <VehicleModel> <x> <y> <z> <Angle> <SpawnDelay>", ");
        SendClientMessageToPlayer(COLOR_White,string);
I setted it under the "Blank Filterscript by your name here" thing.
Reply


Messages In This Thread
SScanf scripting, making a command. - by rooney12 - 13.12.2011, 19:08
Re: SScanf scripting, making a command. - by [ABK]Antonio - 13.12.2011, 22:04
Re: SScanf scripting, making a command. - by Rob_Maate - 13.12.2011, 23:07
Re: SScanf scripting, making a command. - by rooney12 - 14.12.2011, 12:19
Re: SScanf scripting, making a command. - by Rob_Maate - 14.12.2011, 15:01
Re: SScanf scripting, making a command. - by rooney12 - 14.12.2011, 15:04
Re: SScanf scripting, making a command. - by Rob_Maate - 14.12.2011, 15:14
Re: SScanf scripting, making a command. - by rooney12 - 14.12.2011, 15:15
Re: SScanf scripting, making a command. - by Rob_Maate - 14.12.2011, 15:23
Re: SScanf scripting, making a command. - by rooney12 - 14.12.2011, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)