SA-MP Forums Archive
Cancelhit - 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: Cancelhit (/showthread.php?tid=165220)



Cancelhit - gin - 03.08.2010

if(strcmp(cmd, "/cancelhit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] ==
{
if(GoChase[playerid] < 999)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
format(string,sizeof string,"Hitman %s has canceled %s(ID:%d) contract.", sendername , giveplayer, hitid);
SendFamilyMessage(8, COLOR_YELLOW, string);
GetChased[playerid] = 999;
GoChase[playerid] = 999;
GotHit[playerid] = 0;
hitid = 999;
hitfound = 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not a Hitman!");
}
}
return 1;
}


what's wrong in this command ?
I give up my contract and does not appear in "Contracts"
I need this command for hitman (GF)



sry for my bad english


Re: Cancelhit - gin - 04.08.2010

bump.....


Re: Cancelhit - gin - 15.08.2010

bump......


Re: Cancelhit - gamer931215 - 16.08.2010

1. Think about your outlining (use extra tabs) its very important, pawn is very sensitive for that!
2. Please use pawn scripts between [ pawn] and [ /pawn] things (without the spaces after "[").
3. I think you can better upload a bigger part of your script to pastebin, because if any of these bugs in the array is bugged, we cant see that.

And do you have any errors/warnings maybe ?


Re: Cancelhit - gin - 08.09.2010

1.I have the contract on x , when i cancel the contract says you canceled contract on y.
2. no errors
3. I use gf

someone can help me i need this command

sry 4 my bad english


Re: Cancelhit - Lenny the Cup - 08.09.2010

he means put [pawn]
pawn Код:
tags[ /pawn]
around your script