22.04.2011, 21:17
I have problem with params because I making command with sscanf and I have to put params but I dont know what is it and it says all the times error 017: undefined symbol "params"....
if(sscanf(params,"d",withdraw))
if(!strcmp(cmdtext, "/withdraw", true))
{
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
new withdraw;
if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2313, -4, 27)) return SendClientMessage(playerid,Red,"ERROR : You Have To Be In The Bank");
else if(sscanf(params,"d",withdraw)) return SendClientMessage(playerid,Red,"USAGE : /withdraw [Amount]");
else if(withdraw > Pinfo[playerid][Deposit]) return SendClientMessage(playerid,Red,"ERROR : You Don't Have That In Bank!");
else
{
GivePlayerMoney(playerid,withdraw);
Pinfo[playerid][Deposit] -= withdraw;
new string[128];
format(string,sizeof(string),"SERVER : You Have Withdrawed $%d",withdraw);
SendClientMessage(playerid,Green,string);
dini_IntSet(file,"Deposit",Pinfo[playerid][Deposit]);
}
}