Quote:
Originally Posted by pds2k12
Sure, Explanation inside
pawn Код:
CMD:delaytime(playerid, params[]) {//opening bracket static DelayTimer[MAX_PLAYERS]; //local or static variable, only for this function
if(gettime() - DelayTimer[playerid] >= 1) //equals or more than 1 return SendClientMessage(playerid, -1, "Error Message");//shows the error
DelayTimer[playerid] = gettime() + 10; //get the server time and adds +10 seconds restriction. return true; // returns 1 or true } // closing bracket
|
i always get "Error Message" please help