Problem In /setsong Command
#2

and ur problem is that there is nothing u've defined called params
do somethin like
pawn Код:
#include zcmd
CMD:setsong(playerid,params[])
    {
      new SongID;
      if(sscanf(params, "d", SongID))
      {
        SendClientMessage(playerid, -1, "USAGE: /setsong [SongID]");
        SendClientMessage(playerid, -1, "Note: Song IDs: 1 - Ridin' Dirty Song 2 - GTA San Andreas Trailer Song");
      } // SSCANF, if you didn't type a prize the message /setlotto <prize> will show up as a syntax error
      if(SongID == 1)
      {
        Favouritesong[playerid] = 1;
        SendClientMessage(playerid, -1, "Successfully Saved Ridin' Dirty Song! Use /usesong To Listen To It");
      }
      if(SongID == 2)
      {
        Favouritesong[playerid] = 2;
        SendClientMessage(playerid, -1, "Successfully Saved GTA San Andreas Trailer Song! Use /usesong To Listen To It");
      }
      return 1;
    }
Reply


Messages In This Thread
Problem In /setsong Command - by Youssef214 - 28.04.2014, 10:14
Re: Problem In /setsong Command - by superrobot48 - 28.04.2014, 10:18
Re: Problem In /setsong Command - by Youssef214 - 28.04.2014, 10:19
Re: Problem In /setsong Command - by superrobot48 - 28.04.2014, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)