Problem with GangZoneShowForPlayer
#1

Hey, i'm trying to make a turf system, but i'm stuck with some issues which i can't fix.
I hope that any of you is able to help me.
This is my current code:
Код:
	new TCOLOR[256],nomefile[60];
	format(nomefile,sizeof(nomefile),"turfs/Turf1.txt");
	TCOLOR = dini_Get(nomefile,"turfcolor");
	GangZoneShowForPlayer(playerid, gangzone1, TCOLOR);
I want to make the color to the one that is in the Turf1.txt (turfcolor=)
When compiling i get this error:
Код:
(11466) : error 035: argument type mismatch (argument 3)
Someone knows how to fix this?

Thanks in advance.
Reply
#2

bro,use dini_Int.


_______________________________
If I helped, and If you want, feel free to Rep+.else just ignore this text
Reply
#3

Already tryd that, but when i go in game i don't see the turf.
Reply
#4

Anyone? :/
Reply
#5

http://gtaforum.hu/index.php?PHPSESS...&page=gangzone

instead of loading and saving and u just add them 2 ur script rept++
Reply
#6

No, what i want is that factions are able to take over turfs, as example: I'm barzini and i do /taketurf than
Код:
dini_Set(nomefile,"turfcolor","Barzini_Color");
I hope you get my point.

Although
Код:
GangZoneShowForPlayer(playerid, gangzone1, dini_Int
Works for me, but that only works for numbers only.

And
Код:
GangZoneShowForPlayer(playerid, gangzone1, dini_Get
Gives me that error :/
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)