SA-MP Forums Archive
Not Give Score... - 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: Not Give Score... (/showthread.php?tid=498589)



Not Give Score... - alishvasis - 04.03.2014

Hi In My Rob System Not Give Score To Players After Robbery...How To Fix it This Is Part Of My Rob System Code
Код:
if(RobbingCityHall[i] == 1)
			{
			    new mrand =random(200000);
			    RobbingCityHall[i] =0;
    			format(string,sizeof(string),"City Hall robbed Complete.\nYou robbed a total of $%d from the City Hall.\nWatch out for police!",mrand);
                ShowPlayerDialog(i,DIALOG_CITYHALL,DIALOG_STYLE_MSGBOX,"{FF0000}City Hall Dozdi Shod",string,"Ok","Cancel");
				SendClientMessage(i,COLOR_RED,string);
				GivePlayerCash(i,mrand);
				new playerid;
				SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);



Re: Not Give Score... - Sergei - 04.03.2014

Quote:

new playerid;
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);

=>
SetPlayerScore(i, GetPlayerScore(i) + 1);


Re: Not Give Score... - alishvasis - 04.03.2014

Quote:
Originally Posted by Sergei
Посмотреть сообщение
=>
SetPlayerScore(i, GetPlayerScore(i) + 1);
Tnx Its Worked + Rep