[RP] Turf/Point system
#1

I have this turf system. But its too much buggy. When you type /points alll the point name is 1 i dont know why.

Код:
CMD:points(playerid, params[])
{
	new string[128];

	for(new i; i < MAX_POINTS; i++)
	{
		if (Points[i][Type] >= 0)
		{
			format(string, sizeof(string), "Name: %s | Owner: %s | Captured By: %s | Hours: %d",
			Points[i][Name],Points[i][Owner],Points[i][CapperName],Points[i][Vulnerable]);
			SendClientMessageEx(playerid, COLOR_WHITE, string);
		}
	}
	return 1;
}


I have this points.cfg in scriptfiles



Код:
1423.473266|-1319.274291|13.554697|1|4|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
0.000000|0.000000|13.554697|1|0|None|Angel Mae|1
|0
I Hope you guys can help me about this
Reply
#2

Because it's reading straight from the config file where they're all owned by the same person and all named 1, you have to rename them in the config file I'd guess.

Код:
0.000000|0.000000|13.554697|1|0|None|Flake|TheGangName
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)