21.04.2014, 00:14
Hello folks,
I'm having a bit of a problem here.
It gives me an error and I can't seem to find what causes it.
This is the line on which the error is:
This is the code:
This is the part where the ProxDetector is:
This is to say to nearby players for what reason the player is off the server.
Thanks in advance!
I'm having a bit of a problem here.
It gives me an error and I can't seem to find what causes it.
This is the line on which the error is:
pawn Код:
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW, COLOR_YELLOW); // Players nearby see the message
Код:
(144) : error 029: invalid expression, assumed zero
pawn Код:
new string[128];
switch(reason)
{
case 0: format(string, sizeof(string), "* %s has left the server. (Timeout)", GetName(playerid));
case 1: format(string, sizeof(string), "* %s has left the server. (Leaving)", GetName(playerid));
case 2: format(string, sizeof(string), "* %s has left the server. (Kicked)", GetName(playerid));
}
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW, COLOR_YELLOW); // Players nearby see the message
return 1;
Thanks in advance!