28.03.2010, 13:36
First of all, i have defined my script like this:
Then, in a timer, i made this script:
And i got an error, like this:
(It means this line: SendClientMessage(playerid, MESSAGE_COLOR, "<~> Freeze bomb has been exploded near you. You're unable to move for 5 seconds <~>");)
Does anybody can help
The error also happened on other SendClientMessage in my script in the other timer. PLEASE HELP!!!
pawn Код:
#define MESSAGE_COLOR #FF0000 //COLOR OF THE MESSAGES
pawn Код:
public freezebombtime(bombid)
{
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerInRangeOfPoint(playerid, 15, bombx[playerid], bomby[playerid], bombz[playerid]))
{
TogglePlayerControllable(playerid, false);
SendClientMessage(playerid, MESSAGE_COLOR, "<~> Freeze bomb has been exploded near you. You're unable to move for 5 seconds <~>");
SetTimerEx("stopfreeze", 5000, false, "i", playerid);
}
}
}
Код:
C:\Users\win 7\Desktop\deleteme.pwn(43) : error 035: argument type mismatch (argument 2)
Does anybody can help
The error also happened on other SendClientMessage in my script in the other timer. PLEASE HELP!!!