10.06.2016, 19:11
(
Последний раз редактировалось blanic; 11.06.2016 в 19:13.
)
-deleted-
new giveplayerid[128];
if(sscanf(params, "s", giveplayerid))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /id [playername]");
return 1;
}
#include sscanf2
in ZCMD there is params[] option. use params insted of cmdtext.also use sscanf2 for better performance.
PHP код:
Код:
#include sscanf2 |
new giveplayerid[MAX_PLAYER_NAME];
if(sscanf(params, "s[24]", giveplayerid)) return SendClientMessage(playerid, -1, "USAGE: /id [playername]");
#include <sscanf2>