06.02.2014, 15:41
Quote:
if (strcmp("/jail", cmdtext, true, 10) == 0) { new target, string[256], name[24], targetname[24]; if(sscanf(params, "r", target)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /jail {target}"); SetPlayerInterior(playerid, interiorID); SetPlayerPos(playerid, X, Y, Z); GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(target, targetname, sizeof(targetname)); format(string, sizeof(string), "%s put %s in jail.", name, targetname); return 1; } |
but error : error 017: undefined symbol "params"
In line 219
Quote:
if(sscanf(params, "r", target)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /jail {target}"); |