Need little help please -
Saw® - 04.03.2013
Hey , I have some questions :
1-Is it possible to add like {FFFFF} in TextDrawSetString ? if yes, how?
[RESOLVED]
2-How to get who has the highest number in a variable ? then the second then the third...?
[RESOLVED]
3-Imagine we have this:
[Awaiting]
Код:
Random fonction + switch...
case:Something
case2:Something
Case3: Something
so the server must choose randomly case 0 or... how to get the random that server chose? to use it somewhere in the GM .
Re: Need little help please -
L.Hudson - 04.03.2013
1- use the coding just like in GameTextForPlayer, like ~r~ for red ~y~for yellow
As for 2 I didn't even understand what u need ^^
Re: Need little help please -
Scrillex - 04.03.2013
if(blablabla)
{
(switch)
{
Case:1
Case:2
Case:3
{
if(add here your high positon
}
On function try to define case 3 as bigger variable.
with < 3
== 3 try something like that..
Re: Need little help please -
Saw® - 04.03.2013
thank you for the first question ,
about the second I meant for example the 'Money' variable is different between players (someone who has 1000$ and other 1000000$....)How to get who is the RICHEST ? the player who has the top number of money
then if you can the second then the third richest then....
Re: Need little help please -
Scrillex - 04.03.2013
use getplayermoney ... It will be much easier..
For example :
GetPlayerMoney
Re: Need little help please -
Saw® - 04.03.2013
I wanna do like in this tutorial:
http://forum.sa-mp.com/showthread.ph...hlight=highest
but only with simple way...
Re: Need little help please -
Scrillex - 04.03.2013
I think there is simple way.. But in this case I can't help you. I really don't have so much experience to do it. Just gived my ideas how it could be possible. Sorry mate ..
Re: Need little help please -
Saw® - 04.03.2013
Quote:
Originally Posted by Scrillex
I think there is simple way.. But in this case I can't help you. I really don't have so much experience to do it. Just gived my ideas how it could be possible. Sorry mate ..
|
no problem & thank you for your ideas.
Re: Need little help please -
Denying - 04.03.2013
pawn Код:
new max = 0;
for( new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i);
{
new money = GetPlayerMoney(i);
if(money > max) max = money;
}
}
This maybe?
Re: Need little help please -
Saw® - 04.03.2013
thank you ! should I put the new max =0; in the top of the GM ?