Error compil.
#1

http://i.imgur.com/lyFaDiM.png
Quote:

CMD:bano(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
new id[25],cont,msg[80];
if(sscanf(params, "s[25]s[80]", id,msg)) return SCM(playerid,COLOR_WHITE,"{B8DBFF}Syntax: /bano <Name> <Reason>");
cont = MySQLCheckAccount(id);
if(cont == 0) return SCM(playerid,COLOR_WHITE,"{FFB870}This name does not exist.");
new sendername[25],string[75];
GetPlayerName(playerid,sendername,sizeof(sendernam e));
format(string, sizeof(string), "Offline: AdmCmd: %s was banned by %s, reason: %s", id, sendername,msg);
SendClientMessageToAll(COLOR_LIGHTRED, string);
new str1[184];
format(str1,sizeof(str1),"UPDATE users SET `Banned`='1' WHERE `name`='%s'",id);
mysql_query(SQL,str1);
new intid,strid[32];
format(str1, sizeof(str1), "SELECT `ID` FROM users WHERE `name` = '%s' LIMIT 1", id);
mysql_query(SQL,str1);
mysql_store_result();
mysql_fetch_row(strid);
intid = strval(strid);
mysql_free_result();
23127: Banlog("Offline",intid,PlayerInfo[playerid][pSQLID],msg);
}
return 1;
}

Quote:

CMD:locations(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
if(CP[playerid] == 43 || CP[playerid] == 0 && Line1busck[playerid] == 0 && Line2busck[playerid] == 0 && MechanicCallTime[playerid] == 0 && MedicCallTime[playerid] == 0 && TaxiCallTime[playerid] == 0 && woodl[playerid] == 0 && petrolt[playerid] == 0 && petrolt2[playerid] == 0 && transports[playerid] == 0 && transports2[playerid] == 0 && pizzaj[playerid] == 0 && IsCollectingRubbish[playerid] == 0
&& IsFarmingWeed[playerid] == 0 && IsFarmingWeed2[playerid] == 0 && IsFarmingWeed3[playerid] == 0 && IsFarmingWeed4[playerid] == 0 && IsFeedingCows[playerid] == 0 && IsGainiCows[playerid] == 0 && PlayerInfo[playerid][pMilkcows] == 0 && PlayerInfo[playerid][pFeedingcows] == 0 && PlayerInfo[playerid][pChicken] == 0 && balem[playerid] == 0 && playerrace[playerid] == 0 && explosion[playerid] == 0 && playerraces[playerid] == 0 && taxim[playerid] == 0 && towcarm[playerid] == 0
&& nrmission[playerid] == 0)
{
26518: ShowPlayerDialog(playerid, DIALOG_LOCATIONS, DIALOG_STYLE_LIST, "Locations:", "Los Santos Bank\nLos Santos Paintball\nLos Santos DMV\nLos Santos CNN\nLos Santos Gun Shop\nLos Santos City Hall\nLos Santos Dealership\nLos Santos 24/7\nLos Santos Clothes\nLos Santos Gun Shop\nSan Fierro Church\nLos Santos Mall\nLos Santos Materials Get\nLos Santos Beach Bar\nLos Santos Event Area\"Select", "Close");
}
}
return 1;
}

Reply
#2

For line 23127, I don't know. You must provide this 'Banlog' function.

For 26518:

pawn Code:
ShowPlayerDialog(playerid, DIALOG_LOCATIONS, DIALOG_STYLE_LIST, "Locations:", "Los Santos Bank\nLos Santos Paintball\nLos Santos DMV\nLos Santos CNN\nLos Santos Gun Shop\nLos Santos City Hall\nLos Santos Dealership\nLos Santos 24/7\nLos Santos Clothes\nLos Santos Gun Shop\nSan Fierro Church\nLos Santos Mall\nLos Santos Materials Get\nLos Santos Beach Bar\nLos Santos Event Area,"Select", "Close");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)