/stats cmd with dudb?
#2

Why dont use dini? it's pretty easier... Look at the code which I do use:
pawn Код:
dcmd_stats(playerid,params[])
{
   new Float:x, Float:y, Float:z, Float:health, Float:armor, name[30];
   new string[128]; new id; id = strval(params);
   if(!IsPlayerConnected(id)) return SendClientMessage(playerid, AZUL, "Player nгo conectado");
   if(!strlen(params)) return SendClientMessage(playerid, AZUL, "USO: /stats <id>");
   {
     GetPlayerPos(playerid, x,y,z); GetPlayerHealth(playerid, health);
     GetPlayerArmour(playerid, armor);
     GetPlayerName(playerid, name, 30);
     format(string,sizeof(string),"Info do id %d: | Health: %d | Armour: %d | Score: %d | Money: %d | Skin: %d | Nome: %s",id,floatround(health),armor,GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPlayerSkin(playerid),name);
     SendClientMessage(playerid, AZUL, string);
     PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0);
   }

   
   return 1;
}

It's for player stats, and nothing to do with dini or dudb, cause things are already loaded.
Reply


Messages In This Thread
/stats cmd with dudb? - by Face9000 - 16.12.2010, 15:36
Re: /stats cmd with dudb? - by blackwave - 16.12.2010, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)