player level = score
#1

Код:
	  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.
Reply
#2

On what line is the error?

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

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);
Reply
#4

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

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

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

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

English only.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)