PDA

View Full Version : undefined symbol "params"


suni
30/07/2015, 10:51 PM
if(sscanf(params, "ui", id )) return SendClientMessage(playerid, 0xFFFF00FF, "Syntax: /heal (id)");

PMH
30/07/2015, 10:58 PM
U've misspelled params in CMD:
Show the whole command

suni
30/07/2015, 11:32 PM
if (strcmp("/dhealme", cmdtext, true, 10) == 0)
{
new str[128], id;
{
if(sscanf(params, "ui", id )) return SendClientMessage(playerid, 0xFFFF00FF, "Syntax: /heal (id)");
if(id == playerid) return SendClientMessage(playerid, 0xFFFF00FF, "You cant use this command to yourself.");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFFFF00FF, "Not found.");
{
Healme[id] = 1;
}
}
return 1;
}
return 0;
}

Jimmi
30/07/2015, 11:40 PM
sscanf is used with zcmd. You may not use strcmp.

suni
30/07/2015, 11:47 PM
my bad I was confused