HELP | DINI HELP
#1

why when i do this,
it creates a file named "%d" and not my name? =\

Код:
  new n[MAX_PLAYER_NAME];
	if (strcmp("/BuyCar", cmdtext, true, 10) == 0)
	{
  if(incar[playerid] == 1)
  {
   if(dini_Exists("/car/%d.txt",n))
   {
  	SendClientMessage(playerid,0xFF0000AA,".יש לך כבר מכונית אחת ברשותך");
   }
   else
   {
  	SendClientMessage(playerid,0xFF0000AA,".המערכת בבנייה");
  	dini_Create("/car/%d.txt");
   }
	 } else return SendClientMessage(playerid,0xFF0000AA,".אתה לא נמצא בתוך רכב");
		return 1;
	}
		if (strcmp("/SellCar", cmdtext, true, 10) == 0)
	{
  if(incar[playerid] == 1)
  {
   if(dini_Exists("/car/%d.txt",n))
   {
  	  dini_Remove("/car/%d.txt",n);
  	  SendClientMessage(playerid,0xFF0000AA,".מכרת בהצלחה אתה הרכב שהיה ברשותך");
   }
   else
   {
  	SendClientMessage(playerid,0xFF0000AA,".אין לך רכב");
   }
	 } else return SendClientMessage(playerid,0xFF0000AA,".אתה לא נמצא בתוך רכב");
		return 1;
	}
thx..
Reply


Messages In This Thread
HELP | DINI HELP - by borisblat - 28.05.2009, 18:20
Re: HELP | DINI HELP - by pen_theGun - 28.05.2009, 18:28
Re: HELP | DINI HELP - by borisblat - 28.05.2009, 18:33
Re: HELP | DINI HELP - by pen_theGun - 28.05.2009, 18:53
Re: HELP | DINI HELP - by borisblat - 28.05.2009, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)