01.03.2018, 02:17
error 021: symbol already defined: "cmd_points"
My Code:
CMD: points(playerid, params[])
{
new string[128];
for(new i; i < MAX_POINTS; i++)
{
if(Points[i][Type] >= 0)
{
if(Points[i][Vulnerable] == -1)
{
format(string, sizeof(string), "Name: %s | Owner: %s | Captured By: %s | Hours: Temporarily disabled", Points[i][Name],Points[i][Owner],Points[i][CapperName]);
}
else
{
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]);
}
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}
My Code:
CMD: points(playerid, params[])
{
new string[128];
for(new i; i < MAX_POINTS; i++)
{
if(Points[i][Type] >= 0)
{
if(Points[i][Vulnerable] == -1)
{
format(string, sizeof(string), "Name: %s | Owner: %s | Captured By: %s | Hours: Temporarily disabled", Points[i][Name],Points[i][Owner],Points[i][CapperName]);
}
else
{
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]);
}
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
return 1;
}