Posts: 553
Threads: 95
Joined: Sep 2013
Код:
new var=gettime() - LastUsed[playerid];
pawn Код:
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(389) : error 017: undefined symbol "LastUsed"
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(389) : warning 215: expression has no effect
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(389) : error 001: expected token: ";", but found "]"
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(389) : error 029: invalid expression, assumed zero
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(389) : fatal error 107: too many error messages on one line
Posts: 553
Threads: 95
Joined: Sep 2013
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(390) : error 017: undefined symbol "var"
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(397) : warning 225: unreachable code
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(397) : error 029: invalid expression, assumed zero
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(397) : error 017: undefined symbol "HasFullHealth"
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(406) : warning 225: unreachable code
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(406) : error 029: invalid expression, assumed zero
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(406) : error 017: undefined symbol "cmd_ls"
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(406) : error 029: invalid expression, assumed zero
C:\Users\NINA\Desktop\LSGW\gamemodes\LSGW.pwn(406) : fatal error 107: too many error messages on one line
Posts: 553
Threads: 95
Joined: Sep 2013
Posts: 553
Threads: 95
Joined: Sep 2013
Posts: 553
Threads: 95
Joined: Sep 2013
like this ?
pawn Код:
CMD:hp(playerid,params[])
{
LastUsed[playerid] = gettime(); // Store a unix timestamp in the variable.
if((gettime() - LastUsed[playerid] < 60)
if(var<=(60*3))return SendClientMessage(playerid,-1,"{ff0000}ERROR: You can't use this command right now.");
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -1600);
LastUsed[playerid]=gettime();
return SendClientMessage(playerid,-1,"{00cc00}You have been healed !");
stock HasFullHealth(playerid)
{
static Float:asdHealth;
GetPlayerHealth(playerid, asdHealth);
if(asdHealth >= 99) return true;
else if(asdHealth < 99 && asdHealth != 99) return false;
return 1;
}
Posts: 553
Threads: 95
Joined: Sep 2013
C:\Users\ScoK\Desktop\LSGW\gamemodes\LSGW.pwn(392) : error 001: expected token: ")", but found "return"