Hello I Have Un Error
PHP Code:
public eDeath()
{
new attacker = read_data_points(1);
new victim = read_data_points(2);
new headshot = read_data_points(3);
if(cs_get_user_team(attacker) != cs_get_user_team(victim))
{
g_points[attacker] += 1;
}
else
{
if(attacker == victim)
{
g_points[attacker] += 0;
}
else
{
if(!headshot)
g_points[attacker] += 1;
else
g_points[attacker] += 1;
}
}
}
Read Data Points
PHP Code:
public read_data_points()
{
formatex(path, 127, "%s/top_points.txt", file_dir);
new f = fopen(path, "rt");
new i = 0;
new points[25];
while(!feof(f) && i < TOP+1)
{
fgets(f, data, 255);
parse(data, top_name[i], 31, points, 25);
top_points[i] = str_to_num(points);
i++;
}
fclose(f);
}
Errors :
PHP Code:
System_Points.sma(158) : error 088: number of arguments does not match definition
System_Points.sma(159) : error 088: number of arguments does not match definition
System_Points.sma(160) : error 088: number of arguments does not match definition
System_Points.sma(734) : warning 209: function "read_data_points" should return a value
3 Errors.
Compile failed!