HELP | DINI HELP
#4

pawn Код:
new n[MAX_PLAYER_NAME];
new dinipath[64];
GetPlayerName(playerid, n, MAX_PLAYER_NAME);

format(dinipath, 63, "/car/%s.txt", n);

if (strcmp("/BuyCar", cmdtext, true, 7) == 0)
{
    if(incar[playerid] == 1)
    {
        if(dini_Exists( dinipath ))
        {
            SendClientMessage(playerid,0xFF0000AA,".יש לך כבר מכונית אחת ברשותך");
        }
        else
        {
            SendClientMessage(playerid,0xFF0000AA,".המערכת בבנייה");
            dini_Create( dinipath );
        }
    } else return SendClientMessage(playerid,0xFF0000AA,".אתה לא נמצא בתוך רכב");
    return 1;
}
if (strcmp("/SellCar", cmdtext, true, 8) == 0)
{
    if(incar[playerid] == 1)
    {
        if(dini_Exists( dinipath ))
        {
            dini_Remove( dinipath );
            SendClientMessage(playerid,0xFF0000AA,".מכרת בהצלחה אתה הרכב שהיה ברשותך");
        }
        else
        {
            SendClientMessage(playerid,0xFF0000AA,".אין לך רכב");
        }
    }
    else return SendClientMessage(playerid,0xFF0000AA,".אתה לא נמצא בתוך רכב");
    return 1;
}
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)