Hmmm... Help.. please
#6

If you are trying to save the string:


pawn Код:
//Change this part in your enum:
pGang to pGang[25]

//Under OnDialogResponse:
if(strlen(inputtext) > 24 || strlen(inputtext) < 5) return SendClientMessage(playerid, -1, "Use a name with 5 - 24 characters.");
GangName(playerid, inputtext);

public GangName(playerid, Gang[])
{
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), ARS_ACCOUNTS, name);
    format(PlayerInfo[playerid][pGang], 25, Gang);
    dini_Set(file, "Gang", Gang);
    return 1;
}
Not tested.
Reply


Messages In This Thread
Hmmm... Help.. please - by Buzzbomb - 15.02.2012, 06:44
Re: Hmmm... Help.. please - by Buzzbomb - 15.02.2012, 18:12
Re: Hmmm... Help.. please - by iPLEOMAX - 15.02.2012, 18:49
Re: Hmmm... Help.. please - by Roperr - 15.02.2012, 18:54
Re: Hmmm... Help.. please - by Universal - 15.02.2012, 18:59
Re: Hmmm... Help.. please - by iPLEOMAX - 15.02.2012, 20:31

Forum Jump:


Users browsing this thread: 1 Guest(s)