Quote:
Originally Posted by HardWar
No lugar de
pawn Код:
else { Player[playerid][Dinheiro] = GivePlayerMoney(playerid, 5000); Player[playerid][Vida] = SetPlayerHealth(playerid, 50); DOF2_SetInt(arquivo, "Senha", Player[playerid][Senha]); DOF2_SetInt(arquivo, "Matou", Player[playerid][Matou]); DOF2_SetInt(arquivo, "Morreu", Player[playerid][Morreu]); DOF2_SetInt(arquivo, "Dinheiro", Player[playerid][Dinheiro]); DOF2_SetInt(arquivo, "Vida", Player[playerid][Vida]); DOF2_SaveFile();
}
coloca
pawn Код:
else { Player[playerid][Senha] = inputtext; DOF2_CreateFile(arquivo) Player[playerid][Dinheiro] = GivePlayerMoney(playerid, 5000); Player[playerid][Vida] = SetPlayerHealth(playerid, 50); DOF2_SetInt(arquivo, "Senha", Player[playerid][Senha]); DOF2_SetInt(arquivo, "Matou", Player[playerid][Matou]); DOF2_SetInt(arquivo, "Morreu", Player[playerid][Morreu]); DOF2_SetInt(arquivo, "Dinheiro", Player[playerid][Dinheiro]); DOF2_SetInt(arquivo, "Vida", Player[playerid][Vida]); DOF2_SaveFile(); }
|
Apareceram esses erros :
Код:
C:\Users\IGOR2\Downloads\Server\gamemodes\registro.pwn(88) : error 006: must be assigned to an array
C:\Users\IGOR2\Downloads\Server\gamemodes\registro.pwn(90) : error 001: expected token: ";", but found "-identifier-"
Linhas :
Код:
Player[playerid][Senha] = inputtext;
Player[playerid][Dinheiro] = GivePlayerMoney(playerid, 5000);