Need little help please
#1

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

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 ^^
Reply
#3

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

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

use getplayermoney ... It will be much easier..

For example : GetPlayerMoney
Reply
#6

I wanna do like in this tutorial: http://forum.sa-mp.com/showthread.ph...hlight=highest

but only with simple way...
Reply
#7

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

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

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

thank you ! should I put the new max =0; in the top of the GM ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)