SA-MP Forums Archive
>> Increase the value of clankills? HELP PLEASE << - 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: >> Increase the value of clankills? HELP PLEASE << (/showthread.php?tid=340424)



>> Increase the value of clankills? HELP PLEASE << - nGen.SoNNy - 07.05.2012

Hi! Can somebody tell me how can i give to clankills a +1 value like clankill++ ...

Or any other ideas to increase the number

pawn Код:
format(clanquery, sizeof(clanquery), "UPDATE clans SET clankills  WHERE clanname = '%s'", GetPlayerClan(killerid));
    mysql_query(clanquery);



Re: >> Increase the value of clankills? HELP PLEASE << - Jstylezzz - 07.05.2012

pawn Код:
format(clanquery, sizeof(clanquery), "UPDATE clans SET clankills= '%d'  WHERE clanname = '%s'",GetPlayerClanKills(playerid) +1,GetPlayerClan(killerid));
    mysql_query(clanquery);
Try this, I'm not sure what you use to define the clankills, but you can change getPlayerClanKills to your method.


Re: >> Increase the value of clankills? HELP PLEASE << - mendax - 07.05.2012

pawn Код:
format(clanquery, sizeof(clanquery), "UPDATE clans SET clankills=clankills+1  WHERE clanname = '%s'", GetPlayerClan(killerid));
    mysql_query(clanquery);



Re: >> Increase the value of clankills? HELP PLEASE << - nGen.SoNNy - 07.05.2012

clankills=clankills+1 it's not the same with clankills=clankills++ ?


Re: >> Increase the value of clankills? HELP PLEASE << - Pinguinn - 07.05.2012

It is the same.