23.08.2012, 19:42
pawn Код:
GetPlayerLevel(playerid)
{
new Query[ 200 ],Field[ 20 ];
format(Query, sizeof(Query), "SELECT `NAME` FROM `USERS` WHERE `NAME` = '%s'", DB_Escape(Gn(playerid)));
printf(Query);
new DBResult:Result = db_query(Database,Query);
db_get_field_assoc(Result, "LEVEL", Field, 30);
printf("%i",strval(Field));
return strval(Field);
}