[Ajuda] /save nгo estar salvando
#1

Pessoal eu na versгo 0.3.7 dou barra /save aparece no chat dizendo que salvou bonitinho. mas quando vou na pasta do gta pegar o save nгo tem. tipo jб na versгo 0.3z salva de boas e aparece no arquivo do gta. pfv me ajudem
Reply
#2

Geralmente isso n vai pra pasta do GTA, tenta ver na pasta DOCUMENTOS nos saves do GTA, dentro da pasta SAMP..

Quote:

C:\Users\User\Documents\GTA San Andreas User Files\SAMP

Reply
#3

Verifique aqui o arquivo que fica salvo as posiзхes:

Quote:

C:\Users\Usuario\Documents\GTA San Andreas User Files\SAMP

Abra esse arquivo:

Quote:

savedpositions.txt

Reply
#4

Pow man aeae que eu vouuu -_- mas agr n ta mais salvando
Reply
#5

PHP код:
if (strcmp(cmdtext"/save"true)==0)
{
    
GetPlayerPos(playeridXYZ);
    
GetPlayerFacingAngle(playeridRotation);
 
    new 
File:pos=fopen("positions.txt"io_append);
    
format(string256"AddPlayerClass(0, %f, %f, %f, %f, 0,0,0,0,0,0);"XYZ,Rotation);
    
fwrite(posstring);
    
fclose(pos);
 
    return 
1;

Reply
#6

C:\Users\Usuario\Searches\Music\Desktop\Marcos\gam emodes\bare.pwn(39) : error 017: undefined symbol "X"
C:\Users\Usuario\Searches\Music\Desktop\Marcos\gam emodes\bare.pwn(40) : error 017: undefined symbol "Rotation"
C:\Users\Usuario\Searches\Music\Desktop\Marcos\gam emodes\bare.pwn(43) : error 017: undefined symbol "string"
C:\Users\Usuario\Searches\Music\Desktop\Marcos\gam emodes\bare.pwn(44) : error 017: undefined symbol "string"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


da esses erros mano. me ajuda ae nmrl
Reply
#7

C:\Users\Usuario\Searches\Music\Desktop\Marcos\gam emodes\bare.pwn(39) : error 017: undefined symbol "X"
C:\Users\Usuario\Searches\Music\Desktop\Marcos\gam emodes\bare.pwn(40) : error 017: undefined symbol "Rotation"
C:\Users\Usuario\Searches\Music\Desktop\Marcos\gam emodes\bare.pwn(43) : error 017: undefined symbol "string"
C:\Users\Usuario\Searches\Music\Desktop\Marcos\gam emodes\bare.pwn(44) : error 017: undefined symbol "string"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


da esses erros mano. me ajuda ae nmrl
Reply
#8

PHP код:
if (strcmp(cmdtext"/save"true)==0

    new 
FloatXFloatYFloatZFloatRotationstring[150];
    
GetPlayerPos(playeridXYZ); 
    
GetPlayerFacingAngle(playeridRotation); 
  
    new 
File:pos=fopen("positions.txt"io_append); 
    
format(string256"AddPlayerClass(%i, %f, %f, %f, %f, 0,0,0,0,0,0);"GetPlayerSkin(playerid), XYZ,Rotation); 
    
fwrite(posstring); 
    
fclose(pos); 
  
    return 
1

Nгo sabe criar uma variбvel?
Reply
#9

Mds, preguiзa on.
Reply
#10

Eu refiz todo do 0 esse comando, para n precisar criar o arquivo, com esse comando ele vai criar, ler, acrescentar e escrever. O anterior apenas acrescenta e escreve.

PHP код:
    if(strcmp(cmdtext"/save"true)==0
    { 
        new 
FloatXFloatYFloatZFloatRotationstring[150];
        
        
GetPlayerPos(playeridXYZ); 
        
GetPlayerFacingAngle(playeridRotation); 
        
        new 
File:Position fopen("positions.txt"io_readwrite),
        
ReadLines[150];
        if(
Position)
        {
            for(new 
0fread(PositionReadLines); i++)
                
strcat(ReadLinesReadLines[i]);
            
            
format(string256"AddPlayerClass(0, %f, %f, %f, %f, 0,0,0,0,0,0);\r\n"XYZ,Rotation);
            
fwrite(Positionstring);
            
            
fclose(Position);
        }
        return 
1
    } 
Obrigado, denada.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)