Something's wrong
#1

Hello guys,
in my server, when points 're to capture, there 're no Point name write, i just see this words
PHP код:
1 Has Become Available for capture
1 Has Become Available 
for capture
1 Has Become Available 
for capture
1 Has Become Available 
for capture
1 Has Become Available 
for capture 
CMD
PHP код:
CMD:capture(playeridparams[])
{
    new 
string[128];
    new 
mypoint = -1;
    if(
GetPVarInt(playerid,"Injured") == 1)
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1" You can not capture while injured!");
        return 
1;
    }
    if (
PlayerInfo[playerid][pFMember] == 255 || PlayerInfo[playerid][pRank] < 5)
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1" You are not high rank enough to capture!");
        return 
1;
    }
    for (new 
i=0i<MAX_POINTSi++)
    {
        if (
IsPlayerInRangeOfPoint(playerid1.0Points[i][Pointx], Points[i][Pointy], Points[i][Pointz])) mypoint i;
    }
    if (
mypoint == -1)
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1" You are not at the capture place!");
        return 
1;
    }
    if (
Points[mypoint][Vulnerable] > 0)
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1" This point is not ready for takeover.");
        return 
1;
    }
    if (
Points[mypoint][TimeToClaim])
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1" This point is already being captured!");
        return 
1;
    }
    if(
GetPlayerPing(playerid) > pointpinglimit)
    {
        
format(string,sizeof(string), " You can not capture with %d+ ping!"pointpinglimit);
        
SendClientMessageEx(playeridCOLOR_WHITEstring);
        return 
1;
    }
    
Points[mypoint][PointBarID] = CreateProgressBar(258.00137.00131.503.19COLOR_GREEN100.0);
    
SetProgressBarValue(Points[mypoint][PointBarID], 100.0);
    
ShowProgressBarForPlayer(playeridPoints[mypoint][PointBarID]);
    
format(string,sizeof(string), " %s is attempting to capture the point."GetPlayerNameEx(playerid));
    
ProxDetector(70.0playeridstringCOLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
    
GetPlayerPos(playeridPoints[mypoint][Capturex], Points[mypoint][Capturey], Points[mypoint][Capturez]);
    
Points[mypoint][ClaimerId] = playerid;
    
Points[mypoint][TimeToClaim] = 1;
    
Points[mypoint][TimeLeft] = 10;
    
SetTimerEx("ProgressTimer"10000"d"mypoint);
    return 
1;
}
CMD:points(playeridparams[])
{
    new 
string[128];
    for(new 
iMAX_POINTSi++)
    {
        if (
Points[i][Type] >= 0)
        {
            
format(stringsizeof(string), "Name: %s | Owner: %s | Captured By: %s | Hours: %d",
            
Points[i][Name],Points[i][Owner],Points[i][CapperName],Points[i][Vulnerable]);
            
SendClientMessageEx(playeridCOLOR_WHITEstring);
        }
    }
    return 
1;

Reply
#2

So what's the problem?
Reply
#3

PHP код:
So what's the problem? 
That problem that i want to change points name, i won't them appeared with name
PHP код:
1 Has ...... 
that's all
Reply
#4

This means that it is #defined somewhere usually on top of the script.
You can change what it says there.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)