Raised This Month: $51 Target: $400
 12% 

[REQ] Point Systeme


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Narcos
Junior Member
Join Date: Nov 2017
Location: Germany
Old 11-10-2017 , 17:31   [REQ] Point Systeme
Reply With Quote #1

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(path127"%s/top_points.txt"file_dir);
    
    new 
fopen(path"rt");
    new 
0;
    new 
points[25];
    
    while(!
feof(f)  && TOP+1)
    {
        
fgets(fdata255);
        
parse(datatop_name[i], 31points25);
        
        
top_points[i] = str_to_num(points);
        
i++;
    }
    
fclose(f);

Errors :

PHP Code:
System_Points.sma(158) : error 088number of arguments does not match definition
System_Points
.sma(159) : error 088number of arguments does not match definition
System_Points
.sma(160) : error 088number of arguments does not match definition
System_Points
.sma(734) : warning 209: function "read_data_points" should return a value

3 Errors
.
Compile failed
Narcos is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode