06.03.2012, 08:41
(
Последний раз редактировалось Faisal_khan; 06.03.2012 в 08:43.
Причина: mistake
)
Hi SA-MP Community again,
I have some errors and warnings here please check this out.
I have some errors and warnings here please check this out.
pawn Код:
E:\Faisal\Servers\Orders\thefatshizms-RP\server\gamemodes\RP.pwn(943) : error 004: function "IsNumeric" is not implemented
E:\Faisal\Servers\Orders\thefatshizms-RP\server\gamemodes\RP.pwn(966) : error 004: function "IsNumeric" is not implemented
E:\Faisal\Servers\Orders\thefatshizms-RP\server\gamemodes\RP.pwn(1081) : warning 204: symbol is assigned a value that is never used: "CluckinTimer"
E:\Faisal\Servers\Orders\thefatshizms-RP\server\gamemodes\RP.pwn(1070) : warning 204: symbol is assigned a value that is never used: "WSPT"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
dcmd_deposit(playerid,params[])
{
new index = 0;
new tmp[255];
new string[255];
new moneys;
if(GetPlayerInterior(playerid) != 10) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You Must Be at The BANK!");
tmp = strtok(params, index);
[B]line 943 : [/B] if(!strlen(tmp) || !IsNumeric(tmp)) return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]: Usage: /deposti amount");
moneys = strval(tmp);
if(moneys < 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"Invalid Amount!!");
if(GetPlayerMoney(playerid) < moneys)
{
moneys = GetPlayerMoney(playerid);
}
PlayerBank[playerid] += moneys;
format(string,sizeof(string),"You Have Deposti $%d. Your Current Balance is $%d",moneys,PlayerBank[playerid]);
SendClientMessage(playerid,COLOR_GREEN,string);
GivePlayerMoney(playerid,-moneys);
if(PLAYERLIST_authed[playerid] == 1)
{
dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
dUserSetINT(PlayerName(playerid)).("bank",PlayerBank[playerid]);
}
return 1;
}
if (strcmp("/ckjob", cmdtext, true, 10) == 0)
{
if(GetPlayerInterior(playerid) != 9) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You Must Be At Cluckin Bell!");
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You Must Be On Foot!");
[B]Line 1081:[/B]CluckinTimer = SetTimerEx("CluckinJob",60000,true,"i",playerid);
SetPlayerSkin(playerid,167);
SendClientMessage(playerid,COLOR_YELLOW,"Congratulations now you work at Cluckin-Bell... you will earn 1500$ every 60 Seconds");
return 1;
}