10.06.2012, 16:01
i have 1 error on this code
it says it appears in this line:
this is the error
PHP код:
CMD:do(playerid, params[])
{
new str[128], name[MAX_PLAYER_NAME];
if (sscanf(params, "s[128]", str)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /do [action]");
{
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "* %s (( %s ))", params[0], name);
ProxDetector(3.5, playerid, str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
PHP код:
ProxDetector(3.5, playerid, str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PHP код:
C:\Users\Patrick\Desktop\Samp scriptin\filterscripts\rp_cmds.pwn(135) : error 029: invalid expression, assumed zero