I need help with command transfer.
#1

Okay so how I can transfer this
pawn Код:
dcmd_deposit(playerid,params[])
{
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 deposit;
if(!IsPlayerInRangeOfPoint(playerid,15.0, 2312.0933 ,-4.0435, 26.7422)) return SendClientMessage(playerid,Red,"ERROR : You Have To Be In The Bank");
else if(sscanf(paramas,"d",deposit)) return SendClientMessage(playerid,Red,"USAGE : /deposit [Amount]");
else if(deposit > GetPlayerMoney(playerid)) return SendClientMessage(playerid,Red,"ERROR : You Don't Have That Amount!");
else
{
GivePlayerMoney(playerid,-deposit);
Pinfo[playerid][Deposit] += deposit;
new string[128];
format(string,sizeof(string),"SERVER : You Have Deposited $%d",deposit);
SendClientMessage(playerid,Green,string);
dini_IntSet(file,"Deposit",Pinfo[playerid][Deposit]);
}
return 1;
}
to strcmp?
Reply
#2

Edit: Missunderstood. Sozz.
Reply
#3

it says:error 017: undefined symbol "paramas" on that line: else if(sscanf(paramas,"d",deposit)) return SendClientMessage(playerid,Red,"USAGE : /deposit [Amount]");
Reply
#4

Because it's supposed to be params and not paramas. -.-
Reply
#5

it says it again but ofc unfinded params
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)