[SOLVED]Subcommand don't work - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED]Subcommand don't work (
/showthread.php?tid=115273)
[SOLVED]Subcommand don't work -
UsaBoy91 - 23.12.2009
i use godfather , I've made a subcommand for hitmans , in /portable , then i choose
lcontract
Lcontract means : leave the contract of a HITMAN
And i type /portable , then
leavecontract angel , and the message appear to all (
Angel: leavecontract angel ) but that message with Hitman Angel has canceled Angel's contract , doesn't apper.
Re: Subcommand don't work -
UsaBoy91 - 23.12.2009
I've debug it & the problem comes from here
pawn Код:
if(GoChase[hpl] < 999)
{
GetPlayerName(hpl,giveplayer,sizeof giveplayer);
GetPlayerName(GoChase[hpl],sendername,sizeof sendername);
GetPlayerName(playerid,hn,sizeof hn);
GotHit[GoChase[hpl]] = strval("0");
GetChased[GoChase[hpl]] = strval("999"); // Here stops reading & send that message
GoChase[hpl] = strval("999");
format(string,sizeof string,"Hitman %s has canceled %s's contract.",hn,giveplayer);
SendHitmanMessage(COLOR_WHITE,string);
}
Re: Subcommand don't work -
UsaBoy91 - 23.12.2009
Wtf ? Nobody know? Btw , this is under OnPlayerText ...
Re: Subcommand don't work -
UsaBoy91 - 23.12.2009
Ok , screenshot:
http://files.uploadffs.com/c/4/5d534b32/wrong.PNG
PROBLEM SOLVED