14.10.2013, 21:40
pawn Код:
YCMD:pickup(playerid, params[], help)
{
if(help) return SCM(playerid, COLOR_GREY, "Not supported");
return ycmd_p(playerid, params, help);
}
YCMD:pickup(playerid, params[], help)
{
if(help) return SCM(playerid, COLOR_GREY, "Not supported");
return ycmd_p(playerid, params, help);
}
Command_AddAltNamed("pickup", "p");//underneath the callback OnGameModeInit
public OnGameModeInit()
{
Command_AddAltNamed("pickup", "p"); // this will add "/p" as an alternate name for "/pickup"
return 1;
}
public OnGameModeInit()
{
dbhandle = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);
mysql_log(LOG_ERROR | LOG_WARNING);
new er = mysql_errno(dbhandle);
if(!er) {
printf("[Script] DBHandle acquired %d", dbhandle);
} else {
printf("*****\n\n\n\nSomething went wrong with your database connection! Check the mysql_log.txt (er: %d)\n\n\n\n\n*******", er);
GameModeExit();
}
Command_AddAltNamed("sal", "setadminlevel");
Command_AddAltNamed("setadminlevel", "sal");