SA-MP Forums Archive
help urgent!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help urgent!! (/showthread.php?tid=596757)



help urgent!! - Haz - 22.12.2015

guys my server cmd's are bugged what can i do to fix it pls help me
thanks


Re: help urgent!! - HydraHumza - 22.12.2015

Until you show us your code. We can't help you.


Re: help urgent!! - Haz - 22.12.2015

dcmd_pm(playerid,params[ ])
{
new string[128];
new ID;
new cmdreason[100];
if(sscanf(params, "us[100]", ID, cmdreason))
{
SendClientMessage(playerid,COLOR_ERROR,"{CACA00}[INFO]{FFFFFF}: /pm (Player Name/ID) (Message)");
return 1;
}
if(ID == INVALID_PLAYER_ID)
{
format(string, sizeof(string), "The Player ID (%d) is not connected to the server.",ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
if(IsMuted[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_ERROR,"{CACA00}[ERROR]{FFFFFF}You are Muted. You Cannot Use This Command");
return 1;
}
if(udb_Exists(PlayerName(playerid)) && !PLAYERLIST_authed[playerid])
{
SendClientMessage(playerid,COLOR_ERROR,"{CACA00}[ERROR]{FFFFFF}You must login before you can talk");
return 1;
}
if(PMOff[ID] == 1)
{
format(string, sizeof(string),"%s(%d) is not accepting Personal Messages.",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_ADMIN,string);
return 1;
}
format(string, sizeof(string), "{66CC00}PM Sent to:{CACA00} %s(%d): %s",PlayerName(ID),ID,cmdreason);
SendClientMessage(playerid,COLOR_YELLOW,string);

format(string, sizeof(string), "{66CC00}PM From:{CACA00} %s(%d): %s",PlayerName(playerid),playerid,cmdreason);
SendClientMessage(ID,COLOR_YELLOW,string);

format(string, sizeof(string), "PM From: %s(%d) to %s(%d): %s",PlayerName(playerid),playerid,PlayerName(ID),I D,cmdreason);
SendClientMessageToAll5Admins(string);
SendClientMessageToAll6Admins(string);

format(string, sizeof(string), "3[PM] From %s(%d) to %s(%d): %s",PlayerName(playerid),playerid,PlayerName(ID), ID,cmdreason); // [0] <jacob> hi
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string );

SpamStrings[playerid] ++;
PlayerPlaySound(ID,1085,0.0,0.0,0.0);
return 1;
}
take this , but my all cmds are not workking..


Re: help urgent!! - itsCody - 22.12.2015

If none of your commands are working, backup and undo what you last edited/added, go from there and see what the issue was causing it, or get crashdetect and see if it'll detect something.


Re: help urgent!! - Haz - 22.12.2015

no half of the commands are working and some are bugged idk why?


Re: help urgent!! - xTURBOx - 22.12.2015

You can use only one command procceser