color loaded from mysql
#9

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/Format
https://sampwiki.blast.hk/wiki/Hex

EDIT: while trying with some of the implemented functions, i failed.. i think you need an plugin to make something like this. I might be wrong on this...

What you could do as an workaround:

pawn Код:
new FetchedColor = 1; // pretend i did fetch this from an db.

if(FetchedColor == 1) //CreateTurf with the color 1. Color 1 = COLOR_RED.
else if(FetchedColor == 2) //CreateTurf with the color 2. Color 2 = COLOR_BLUE.
// ETC...
Ya that's basically what I ended up doing. Thx for trying anyway.
Reply


Messages In This Thread
color loaded from mysql - by elcid7772 - 25.10.2010, 20:15
Re: color loaded from mysql - by DVDK - 25.10.2010, 21:33
Re: color loaded from mysql - by elcid7772 - 25.10.2010, 22:30
Re: color loaded from mysql - by DarrenReeder - 25.10.2010, 22:39
Re: color loaded from mysql - by Lookin - 26.10.2010, 00:12
Re: color loaded from mysql - by elcid7772 - 26.10.2010, 21:53
Re: color loaded from mysql - by DVDK - 26.10.2010, 22:36
Re: color loaded from mysql - by Cameltoe - 26.10.2010, 22:40
Re: color loaded from mysql - by elcid7772 - 27.10.2010, 00:13

Forum Jump:


Users browsing this thread: 2 Guest(s)