Can anyone can explain this to me ?
#1

Hello i want to fix this. This is my .cfg in /points

PHP Code:
1423.473266|-1319.274291|13.554697|1|0|None|Nobody|TESTING
|0
0.000000
|0.000000|13.554697|1|0|None|Nobody|TESTING1
|0
0.000000
|0.000000|13.554697|1|0|None|Nobody|TESTING2|0
0.000000
|0.000000|13.554697|1|0|None|Nobody|TESTING3
|0
0.000000
|0.000000|13.554697|1|0|None|Nobody|TESTING4
|0
0.000000
|0.000000|13.554697|1|0|None|Nobody|TESTING5
|0
0.000000
|0.000000|13.554697|1|0|None|Nobody|TESTING6|0
0.000000
|0.000000|13.554697|1|0|None|Nobody|TESTING6
|0
0.000000
|0.000000|13.554697|1|0|None|Nobody|TESTING7
|
Can anyone can explain where i put the name of the /points name like for example Auto Export Company where i will put it ? and where i will fix the hours in /points ?

i will give +rep
Reply
#2

Can you show us /point function?
Reply
#3

0.000000|0.000000|13.554697|1|0|None|Nobody|TESTIN G7|0

x|Y|Z|Open/Closed/Buyable/None|Owner|NAME OF IT|0
Reply
#4

Quote:
Originally Posted by Avi Raj
View Post
Can you show us /point function?
PHP Code:
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
#5

BUMP !
Reply
#6

Show us LoadPoints function (it should be something like that)
Reply
#7

Where i can find it ?
Reply
#8

Do /save and you will get the coords, then go to points.cfg... and make your own..

0.000000|0.000000|13.554697|1|0|None|Nobody|TESTIN G7
|0

As I described to you..
X|Y|Z|Captured|hours|Name|Owner|Nameofit|0


IT IS IN SCRIPT
Reply
#9

In your script using code editor (Pawno) press CTRL and F and put LoadPoints
Reply
#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
#11

Alright as Scrillex said in the previous reply, use his form, but to MAKE THIS WORK, you need to close the samp_server.exe and evrything that is related to this, and then change the .cfg to whatever you want using the form and save it and re-open the server again.
Reply
#12

Quote:
Originally Posted by Scrillex
View Post
Do /save and you will get the coords, then go to points.cfg... and make your own..

0.000000|0.000000|13.554697|1|0|None|Nobody|TESTIN G7
|0

As I described to you..
X|Y|Z|Captured|hours|Name|Owner|Nameofit|0


IT IS IN SCRIPT
Ok i will do this +rep
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)