22.09.2010, 17:26
(
Последний раз редактировалось whitedragon; 22.09.2010 в 18:09.
)
pawn Код:
MySQLFetchAcctSingle(PI[playerid][SQLID], "Password", PI[playerid][Pass]);
if(strcmp(PI[playerid][Pass],password, true ) == 0 )
{
new data[2048];
MySQLFetchAcctRecord(PI[playerid][SQLID], data);
if(mysql_num_rows() > 0)
{
while(mysql_fetch_row(data))
{
mysql_fetch_field("Admin",data); printf("%s",data); PI[playerid][Admin] = strval(data);
mysql_fetch_field("X",data); printf("%s",data); PI[playerid][x] = floatstr(data);
mysql_fetch_field("Y",data); printf("%s",data); PI[playerid][y] = floatstr(data);
mysql_fetch_field("Z",data); printf("%s",data); PI[playerid][z] = floatstr(data);
idx++;
}