Pawn Compiler has stopped working.
#3

Hello Gusteakas, I'm trying to define with letters, it's the name of the character, I'm having this work because I do not know the functions that I can work with.

PHP код:
enum pInfo2
{
    
pSenha,
    
pPersonagem1,
    
pPersonagem2,
    
pPersonagem3
};
new 
Account[MAX_PLAYERS][pInfo2];
            
DOF2_CreateFile(arquivo);
            
DOF2_SetString(arquivo"Senha"Account[playerid][pSenha]);
            
DOF2_SetString(arquivo"Personagem1""Vazio");
            
DOF2_SetString(arquivo"Personagem2""Vazio");
            
DOF2_SetString(arquivo"Personagem3""Vazio");
            
DOF2_SaveFile(); 
@edit

PHP код:
    new
        
arquivo[100],
        
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
format(arquivo40"Contas de Usuбrios/%s.ini"name);
    if (
strcmp(PlayerInfo[playerid][pPersonagem1], "Vazio"true) == 0format(strsizeof(str), "Vazio");
    else 
format(strsizeof(str), "%s"PlayerInfo[playerid][pPersonagem1]);
    
PlayerTextDrawSetString(playeridPlayerInfo[playerid][pTextDraws][2], str); 
Reply


Messages In This Thread
Pawn Compiler has stopped working. - by SukMathcuck - 07.12.2016, 17:11
Re: Pawn Compiler has stopped working. - by Gusteakas - 07.12.2016, 17:16
Re: Pawn Compiler has stopped working. - by SukMathcuck - 07.12.2016, 17:23
Re: Pawn Compiler has stopped working. - by iLearner - 07.12.2016, 17:37
Re: Pawn Compiler has stopped working. - by SukMathcuck - 07.12.2016, 17:44
Re: Pawn Compiler has stopped working. - by iLearner - 07.12.2016, 17:47
Re: Pawn Compiler has stopped working. - by SukMathcuck - 07.12.2016, 17:51
Re: Pawn Compiler has stopped working. - by iLearner - 07.12.2016, 17:56
Re: Pawn Compiler has stopped working. - by SukMathcuck - 07.12.2016, 17:59
Re: Pawn Compiler has stopped working. - by iLearner - 07.12.2016, 18:01

Forum Jump:


Users browsing this thread: 2 Guest(s)