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=90026)



player level = score - Hawkz_Ryder - 05.08.2009

who i need to do,to player level show in the score tab. (TAB)


Код:
	  if(GetPlayerMoney(i) >= LVL_1 && LVL[i] == 0)
		{
    	SendClientMessage(i,LVL_MESSAGE_COLOR,"Apsveicam! Jūs esat sasniedzis 1. līmeni!");
     	LVL[i] = 1;
        SetPlayerScore(playerid)+1;
     	GivePlayerMoney(playerid,-200000);
		}
Код:
D:\DOCUME~1\Ernests\Desktop\Extra\FILTER~1\levels.pwn(274) : warning 202: number of arguments does not match definition
D:\DOCUME~1\Ernests\Desktop\Extra\FILTER~1\levels.pwn(274) : warning 215: expression has no effect
D:\DOCUME~1\Ernests\Desktop\Extra\FILTER~1\levels.pwn(638) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
NO EFFECT! OR 5 ERRORS





Re: player level = score - JaTochNietDan - 05.08.2009

pawn Код:
if(GetPlayerMoney(i) >= LVL_1 && LVL[i] == 0)
{
  SendClientMessage(i,LVL_MESSAGE_COLOR,"Apsveicam! Jūs esat sasniedzis 1. līmeni!");
  LVL[i] = 1;
  SetPlayerScore(playerid,LVL[i]);
  GivePlayerMoney(playerid,-200000);
}
Hope that helps!


Re: player level = score - Hawkz_Ryder - 05.08.2009

BIG BIG BIG THANKS!

Quote:
Originally Posted by Seif_ [adream-rp.com
]
if(GetPlayerMoney(i) >= LVL_1 && LVL[i] == 0)
{
SendClientMessage(i,LVL_MESSAGE_COLOR,"Apsveicam! Jūs esat sasniedzis 1. līmeni!");
LVL[i] = 1;
SetPlayerScore(playerid, LVL[i]);
GivePlayerMoney(playerid,-200000);
}
Код:
D:\DOCUME~1\Ernests\Desktop\Extra\FILTER~1\levels.pwn(273) : 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.