19.12.2015, 06:53
Como passei a madrugada toda estudando sobre SQL ainda estou com dificuldades, mas na esperanзa de aprender a linguagem, em fim
salvar a conta do player
Erro salvar conta
carregar a conta do player
ERROS
salvar a conta do player
Код:
SalvarConta(playerid){ new query[256]; format(query, sizeof(query), "UPDATE `Contas` SET `Admin` WHERE `User` = '%s'", player[playerid][E_PLAYER_ADMIN], nome(playerid)); mysql_function_query(mysql, query, false, "", ""); }
Код:
2.pwn(149) : warning 217: loose indentation
Код:
CarregarConta(playerid) { new query[256],savestr[256]; format(query,sizeof(query),"SELECT * FROM `Contas` WHERE `User` = '%s'",nome(playerid)); mysql_fetch_field_row (savestr, "User"); nome(playerid); mysql_fetch_field_row(savestr, "Admin"); PlayerInfo[playerid][Admin] = strval(savestr); mysql_get_field("User",savestr); mysql_free_result(); return 1; }
Код:
4 Errors. 2.pwn(157) : error 017: undefined symbol "PlayerInfo" 2.pwn(157) : warning 215: expression has no effect 2.pwn(157) : error 001: expected token: ";", but found "]" 2.pwn(157) : error 029: invalid expression, assumed zero 2.pwn(157) : fatal error 107: too many error messages on one line