[SOLVED]Subcommand don't work
#1

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.

Reply
#2

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);
}
Reply
#3

Wtf ? Nobody know? Btw , this is under OnPlayerText ...
Reply
#4

Ok , screenshot: http://files.uploadffs.com/c/4/5d534b32/wrong.PNG

PROBLEM SOLVED
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)