03.02.2012, 16:34
Hy guys am using zcmd and sscanf2 to create cmd...
Code
I put playerid = 0 , but its shows me "ID=172" and name is right.......
Code
Код:
CMD:test(playerid,params[]) { new giveid,G_Name[12],str[64]; if(sscanf(params,"u",giveid)) return SendClientMessage(playerid, C_GREY, "Format: /Test [playerid]"); else GetPlayerName(playerid,G_Name,sizeof(G_Name)); format(str,sizeof(str),"ID = %d ,Name = %s",giveid,G_Name); SendClientMessage(playerid,C_RED,str); return 1; }