asking about sscanf
#1

pawn Код:
CMD:createevent(playerid,params[])
{
 new string[128];
 new strings[128];
 format(string, sizeof(string), "Event : %s Already Started !", eventname);
 format(strings, sizeof(strings), "Event : %s Already Created !", eventname);
 if(IsEventStarted == 1) return SendClientMessage(playerid,-1,string);
 if(IsEventCreated == 1) return SendClientMessage(playerid,-1,string);
 if(sscanf(params,"s[32]i",eventname,eventprice)) return  SendClientMessage(playerid,-1,"Syntx: /createevent <event name> <price>");
 {
  GetPlayerPos(playerid,XX,YY,ZZ);
  new str[128];
  format(str, sizeof(str), "You Was Created Event Name : %s With %d Price !", eventname,eventprice);
  SendClientMessage(playerid,-1,str);
  IsEventCreated = 1;
 }
 return 1;
}
and it say [15:45:11] You Was Created Event Name : 1дeл With 1 Price ! help ?
Reply


Messages In This Thread
asking about sscanf - by xFirex - 02.07.2013, 07:41
Re: asking about sscanf - by Goldilox - 02.07.2013, 07:55
Re: asking about sscanf - by Misiur - 02.07.2013, 10:45

Forum Jump:


Users browsing this thread: 1 Guest(s)