Help with mysql Skins
#4

Can someone tell me what is wrong with this code
pawn Код:
SetPlayerPos(playerid, -2026.6865, 156.8029, 29.0456);
    SetPlayerCameraPos(playerid, -2021.6796, 156.3540, 29.3975);
    SetPlayerCameraLookAt(playerid, -2026.6865, 156.8029, 29.0456);
    SetPlayerFacingAngle(playerid,275);
    new Query[128],DefaultSkin[8],CurrentSkin[8];
    format(Query,sizeof(Query),"SELECT * FROM `users` WHERE username = '%s' LIMIT 1",PlayerName(playerid));
    mysql_query(Query);
    mysql_store_result();
    mysql_retrieve_row();
    mysql_get_field("DefaultSkin",DefaultSkin);
    mysql_get_field("CurrentSkin",CurrentSkin);
    printf("DefaultSkin %d" , strval(DefaultSkin));
    printf("CurrentSkin %d" , strval(CurrentSkin));
    if(strval(DefaultSkin) == 0){
    AddPlayerClass(29, -2026.6865, 156.8029, 29.0456, 0, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(10, -2026.6865, 156.8029, 29.0456, 0, 0, 0, 0, 0, 0, 0);
    }
    else{
    AddPlayerClass(strval(CurrentSkin), -2026.6865, 156.8029, 29.0456, 0, 0, 0, 0, 0, 0, 0);
    }
    SetPlayerFacingAngle(playerid,275);
    mysql_free_result();
Reply


Messages In This Thread
Help with mysql Skins - by TheDeath - 27.07.2012, 22:14
Re: Help with mysql Skins - by Kitten - 27.07.2012, 22:36
Re: Help with mysql Skins - by TheDeath - 27.07.2012, 23:08
Re: Help with mysql Skins - by TheDeath - 28.07.2012, 05:46
Re: Help with mysql Skins - by TheDeath - 28.07.2012, 07:01

Forum Jump:


Users browsing this thread: 1 Guest(s)