SA-MP Forums Archive
player level = 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: player level = score (/showthread.php?tid=90094)



player level = score - Hawkz_Ryder - 06.08.2009

Код:
	  if(GetPlayerMoney(i) >= LVL_3 && LVL[i] == 2)
		{
    	SendClientMessage(i,LVL_MESSAGE_COLOR,"Apsveicam! Jыs esat sasniedzis 3. lоmeni!");
     	LVL[i] = 3;
     	SetPlayerScore(playerid,GetPlayerScore(playerid) + 1);
     	GivePlayerMoney(playerid,-500000);
		}
Score shows only that time,when player buy a level.
When player left from server,and join again,Score is 0,but levels are.
I want,to player join,score shows him level.
Код:
	  if(GetPlayerMoney(i) >= LVL_3 && LVL[i] == 2)
		{
    	SendClientMessage(i,LVL_MESSAGE_COLOR,"Apsveicam! Jыs esat sasniedzis 3. lоmeni!");
     	LVL[i] = 3;
     	SetPlayerScore(playerid, LVL);
     	GivePlayerMoney(playerid,-500000);
		}
>>>>
Код:
D:\DOCUME~1\Ernests\Desktop\Extra\FILTER~1\levels.pwn(289) : error 035: argument type mismatch (argument 2)
D:\DOCUME~1\Ernests\Desktop\Extra\FILTER~1\levels.pwn(648) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: player level = score - dafel2 - 06.08.2009

On what line is the error?

--------------------------------
Kurā rindiņā ir tas erors citādāk tev neviens nevarēs palīdzēt. -.-


Re: player level = score - Hawkz_Ryder - 06.08.2009

Quote:
Originally Posted by revenngeR
On what line is the error?

--------------------------------
Kurā rindiņā ir tas erors citādāk tev neviens nevarēs palīdzēt. -.-
Error is in the line SetPlayerScore(playerid, LVL);

rindiņā SetPlayerScore(playerid, LVL);


Re: player level = score - dafel2 - 06.08.2009

Quote:
Originally Posted by Hawkz_Ryder
Quote:
Originally Posted by revenngeR
On what line is the error?

--------------------------------
Kurā rindiņā ir tas erors citādāk tev neviens nevarēs palīdzēt. -.-
Error is in the line SetPlayerScore(playerid, LVL);

rindiņā SetPlayerScore(playerid, LVL);
you need getplayerlevel function. and then set score.


es jau neredzu to level scriptu tapēc neko daudz nevaru palīdzēt.


Re: player level = score - Hawkz_Ryder - 06.08.2009

Quote:
Originally Posted by revenngeR
Quote:
Originally Posted by Hawkz_Ryder
Quote:
Originally Posted by revenngeR
On what line is the error?

--------------------------------
Kurā rindiņā ir tas erors citādāk tev neviens nevarēs palīdzēt. -.-
Error is in the line SetPlayerScore(playerid, LVL);

rindiņā SetPlayerScore(playerid, LVL);


you need getplayerlevel function. and then set score.


es jau neredzu to level scriptu tapēc neko daudz nevaru palīdzēt.
what is getplayerlevel function? hoe to do it?
skriptu nedoљu! kā t funkciju taisa?


Re: player level = score - asmens25 - 08.08.2009

nav apnicis taisīt visu tāpat kā boxg?
+ kā tev kāds var palīdzēt, ja neredz skriptu? 4otka daunis



Re: player level = score - Woet - 08.08.2009

http://forum.sa-mp.com/index.php?topic=87043.0

English only.