Erros DOF2 -
Mito_FmZ - 31.07.2012
Код:
new valorSenha;
Player[playerid][senha] = format(inputtext, 500, "%s", valorSenha);
DOF2_CreateFile(arquivo);
DOF2_SetString(arquivo, "Senha", Player[playerid][senha]);
DOF2_SetInt(arquivo, "Dinheiro", Player[playerid][dinheiro]);
DOF2_SetInt(arquivo, "Score", Player[playerid][score]);
DOF2_SetInt(arquivo, "Mortes", Player[playerid][mortes]);
DOF2_SetInt(arquivo, "Assassinatos", Player[playerid][assassinatos]);
DOF2_SetString(arquivo, "Org", Player[playerid][org]);
DOF2_SetString(arquivo, "CargoOrg", Player[playerid][cargoOrg]);
DOF2_SetString(arquivo, "Emprego", Player[playerid][emprego]);
DOF2_SetString(arquivo, "HabilidadeEmprego", Player[playerid][habilidadeEmprego]);
DOF2_SetString(arquivo, "Carro", Player[playerid][carro]);
DOF2_SetString(arquivo, "CorCarro", Player[playerid][corCarro]);
DOF2_SetString(arquivo, "CorCarro2", Player[playerid][corCarro2]);
DOF2_SetString(arquivo, "CarteiraTerrestre", Player[playerid][carteiraTerrestre]);
DOF2_SetString(arquivo, "CarteiraAerea", Player[playerid][carteiraAerea]);
DOF2_SetString(arquivo, "CarteiraNautica", Player[playerid][carteiraNautica]);
DOF2_SetString(arquivo, "CarteiraPesca", Player[playerid][carteiraPesca]);
DOF2_SetString(arquivo, "CarteiraArmas", Player[playerid][carteiraArma]);
DOF2_SetString(arquivo, "Spawn", Player[playerid][spawn]);
DOF2_SaveFile(arquivo);
Player[playerid][dinheiro] = DOF2_GetInt(arquivo, "Dinheiro");
Player[playerid][score] = DOF2_GetInt(arquivo, "Score");
Player[playerid][mortes) = DOF2_GetInt(arquivo, "Mortes");
Player[playerid][assassinatos] = DOF2_GetInt(arquivo, "Assassinatos");
Player[playerid][org] = DOF2_GetString(arquivo, "Org");
Player[playerid][cargoOrg) = DOF2_GetString(arquivo, "CargoOrg");
Player[playerid][emprego] = DOF2_GetString(arquivo, "Emprego");
Player[playerid][habilidadeEmprego] = DOF2_GetString(arquivo, "HabilidadeEmprego");
Player[playerid][carro] = DOF2_GetString(arquivo, "Carro");
Player[playerid][corCarro] = DOF2_GetString(arquivo, "CorCarro");
Player[playerid][corCarro2] = DOF2_GetString(arquivo, "CorCarro2");
Player[playerid][carteiraTerrestre] = DOF2_GetString(arquivo, "CarteiraTerrestre");
Player[playerid][carteiraAerea] = DOF2_GetString(arquivo, "CarteiraAerea");
Player[playerid][carteiraNautica] = DOF2_GetString(arquivo, "CarteiraNautica");
Player[playerid][carteiraPesca] = DOF2_GetString(arquivo, "CarteiraPesca");
Player[playerid][caarteiraArma] = DOF2_GetString(arquivo, "CarteiraArmas");
Player[playerid][spawn] = DOF2_GetString(arquivo, "Spawn");
DOF2_SaveFile(arquivo);
Erros:
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(169) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(170) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(171) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(172) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(173) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(174) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(175) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(176) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(177) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(17

: error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(179) : error 006: must be assigned to an array
C:\Users\Andrй\Desktop\GTA\Outros\Servidor\gamemod es\GM.pwn(180) : warning 202: number of arguments does not match definition
Re: Erros DOF2 -
Lуs - 31.07.2012
pawn Код:
new valorSenha;
Player[playerid][senha] = format(inputtext, 500, "%s", valorSenha);
DOF2_CreateFile(arquivo);
DOF2_SetString(arquivo, "Senha", Player[playerid][senha]);
DOF2_SetInt(arquivo, "Dinheiro", Player[playerid][dinheiro]);
DOF2_SetInt(arquivo, "Score", Player[playerid][score]);
DOF2_SetInt(arquivo, "Mortes", Player[playerid][mortes]);
DOF2_SetInt(arquivo, "Assassinatos", Player[playerid][assassinatos]);
DOF2_SetString(arquivo, "Org", Player[playerid][org]);
DOF2_SetString(arquivo, "CargoOrg", Player[playerid][cargoOrg]);
DOF2_SetString(arquivo, "Emprego", Player[playerid][emprego]);
DOF2_SetString(arquivo, "HabilidadeEmprego", Player[playerid][habilidadeEmprego]);
DOF2_SetString(arquivo, "Carro", Player[playerid][carro]);
DOF2_SetString(arquivo, "CorCarro", Player[playerid][corCarro]);
DOF2_SetString(arquivo, "CorCarro2", Player[playerid][corCarro2]);
DOF2_SetString(arquivo, "CarteiraTerrestre", Player[playerid][carteiraTerrestre]);
DOF2_SetString(arquivo, "CarteiraAerea", Player[playerid][carteiraAerea]);
DOF2_SetString(arquivo, "CarteiraNautica", Player[playerid][carteiraNautica]);
DOF2_SetString(arquivo, "CarteiraPesca", Player[playerid][carteiraPesca]);
DOF2_SetString(arquivo, "CarteiraArmas", Player[playerid][carteiraArma]);
DOF2_SetString(arquivo, "Spawn", Player[playerid][spawn]);
DOF2_SaveFile();
Player[playerid][dinheiro] = DOF2_GetInt(arquivo, "Dinheiro");
Player[playerid][score] = DOF2_GetInt(arquivo, "Score");
Player[playerid][mortes) = DOF2_GetInt(arquivo, "Mortes");
Player[playerid][assassinatos] = DOF2_GetInt(arquivo, "Assassinatos");
format(Player[playerid][org], 30, "%s", DOF2_GetString(arquivo, "Org"));
format(Player[playerid][cargoOrg], 30, "%s", DOF2_GetString(arquivo, "CargoOrg"));
format(Player[playerid][emprego], 30, "%s", DOF2_GetString(arquivo, "Emprego"));
format(Player[playerid][habilidadeEmprego], 30, "%s", DOF2_GetString(arquivo, "HabilidadeEmprego"));
format(Player[playerid][carro], 30, "%s", DOF2_GetString(arquivo, "Carro"));
format(Player[playerid][corCarro], 30, "%s", DOF2_GetString(arquivo, "CorCarro"));
format(Player[playerid][corCarro2], 30, "%s", DOF2_GetString(arquivo, "CorCarro2"));
format(Player[playerid][carteiraTerrestre], 30, "%s", DOF2_GetString(arquivo, "CarteiraTerrestre"));
format(Player[playerid][carteiraAerea], 30, "%s", DOF2_GetString(arquivo, "CarteiraAerea"));
format(Player[playerid][carteiraNautica], 30, "%s", DOF2_GetString(arquivo, "CarteiraNautica"));
format(Player[playerid][carteiraPesca], 30, "%s", DOF2_GetString(arquivo, "CarteiraPesca"));
format(Player[playerid][caarteiraArma], 30, "%s", DOF2_GetString(arquivo, "CarteiraArmas"));
format(Player[playerid][spawn], 30, "%s", DOF2_GetString(arquivo, "Spawn"));
DOF2_SaveFile();
Re: Erros DOF2 -
Mito_FmZ - 31.07.2012
Continua com erros no SaveFile.