Can anyone can explain this to me ?
#10

Quote:
Originally Posted by Stanford
View Post
In your script using code editor (Pawno) press CTRL and F and put LoadPoints
Here

PHP Code:
LoadPoints()
{
    new 
arrCoords[9][64];
    new 
strFromFile2[256];
    new 
Filefile fopen("points.cfg"io_read);
    if (
file)
    {
        new 
idx;
        while (
idx sizeof(Points))
        {
            
fread(filestrFromFile2);
            
splits(strFromFile2arrCoords'|');
            
Points[idx][Pointx] = floatstr(arrCoords[0]);
            
Points[idx][Pointy] = floatstr(arrCoords[1]);
            
Points[idx][Pointz] = floatstr(arrCoords[2]);
            
Points[idx][Type] = strval(arrCoords[3]);
            
Points[idx][Vulnerable] = strval(arrCoords[4]);
            
strmid(Points[idx][Owner], arrCoords[5], 0strlen(arrCoords[5]), 255);
            
strmid(Points[idx][CapperName], arrCoords[6], 0strlen(arrCoords[6]), 255);
            
strmid(Points[idx][Name], arrCoords[7], 0strlen(arrCoords[7]), 255);
            
Points[idx][MatPoint] = strval(arrCoords[8]);
            
//printf("%s Type:%d Owner:%s",Points[idx][Name],Points[idx][Type],Points[idx][Owner]);
            
Points[idx][CaptureTimerEx2] = -1;
            
Points[idx][ClaimerId] = INVALID_PLAYER_ID;
            
Points[idx][PointPickupID] = CreateDynamicPickup123923Points[idx][Pointx], Points[idx][Pointy], Points[idx][Pointz]);
            
idx++;
        }
        
fclose(file);
    }
    return 
1;

Reply


Messages In This Thread
Can anyone can explain this to me ? - by ChuckyBabe - 30.03.2014, 06:58
Re: Can anyone can explain this to me ? - by Avi Raj - 30.03.2014, 07:05
Re: Can anyone can explain this to me ? - by Scrillex - 30.03.2014, 07:08
Re: Can anyone can explain this to me ? - by ChuckyBabe - 30.03.2014, 07:12
Re: Can anyone can explain this to me ? - by ChuckyBabe - 30.03.2014, 07:27
Re: Can anyone can explain this to me ? - by Stanford - 30.03.2014, 07:36
Re: Can anyone can explain this to me ? - by ChuckyBabe - 30.03.2014, 07:37
Re: Can anyone can explain this to me ? - by Scrillex - 30.03.2014, 07:40
Re: Can anyone can explain this to me ? - by Stanford - 30.03.2014, 07:40
Re: Can anyone can explain this to me ? - by ChuckyBabe - 30.03.2014, 07:46
Re: Can anyone can explain this to me ? - by Stanford - 30.03.2014, 07:49
Re: Can anyone can explain this to me ? - by ChuckyBabe - 30.03.2014, 07:58

Forum Jump:


Users browsing this thread: 1 Guest(s)