IRCCMD:setrob(botid, channel[], user[], host[], params[])
{
new string[128], ammount;
if(!IRC_IsHalfop(botid, channel, user) && !IRC_IsOp(botid, channel, user) && !IRC_IsAdmin(botid, channel, user))
return IRC_Say(gGroupID,channel,"02You can't use this commands");
if(isnull(params,ammount); <----- // Error Line
return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
format(string,sizeof(string), ": Server IRC Has Setted Your RobSkills To %s",ammount);
SendClientMessage(ID,COLOR_RED,string);
format(string, sizeof(string), "%s has had thier RobSkills setted to by IRC %s", params, ammount, user);
IRC_GroupSay(gGroupID,channel,string);
format(string,sizeof(string),"You have setted %s RobSkills to On IRC.",params,ammount);
IRC_Say(gGroupID,channel,string);
dUserSetINT(params).("robrank",ammount);
return 1;
}
echo Executing Server Config... lanmode 0 rcon_password ???? maxplayers 500 port 7777 hostname SA-MP 0.3 Server gamemode0 lvdm 1 filterscripts announce 0 query 1 weburl www.sa-mp.com onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 500 logtimeformat [%H:%M:%S] plugins crashdetect sscanf
#include <a_samp>
#include <core>
#include <float>
#include <cnpc>
#include <zcmd>
#include <sscanf2>
if(isnull(params,ammount); <----- // Error Line
return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
if(sscanf(params, "d", ammount)) return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
if(sscanf(params,"ui",pname,amount)) return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
if(!IRC_IsHalfop(botid, channel, user) && !IRC_IsOp(botid, channel, user) && !IRC_IsAdmin(botid, channel, user)) return IRC_Say(gGroupID,channel,"02You can't use this commands");
if(!IRC_IsHalfop(botid, channel, user) return IRC_Say(gGroupID,channel,"02You can't use this commands");
if(sscanf(params,"ui",pname,amount)) return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof pname);
if(sscanf(params,"s[24]i",pname,amount)) return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]");
if(sscanf(params,"s[24]i",pname,amount)) return IRC_Say(gGroupID, channel, "02USAGE: !setrob [PlayerName] [AMMOUNT]"); |
lol xD yeah i did s[64] earlier dunno why i edited that ,my lame :P
so the finaly is : - |
DAfq my keyboard i pressed 6 instead of 2 lOL and didnt even noticed thanks again for the fix -.-
[guess i have been much off topic already] |