Cancelhit
#1

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
Reply
#2

bump.....
Reply
#3

bump......
Reply
#4

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 ?
Reply
#5

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
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)