15.02.2012, 06:44
I made a Gang System.. And To make a gang you half to create so It shows them a dialog input box And they type the name Well the name is stored into the users ini file but Some reason It stores it as a string length in like Gang = 16 Here the code..
When gang is created i tried Test Of Testicles the outcome in the userfile Was Gang = 17
pawn Код:
this in the dialog response
GangName(playerid, strlen(inputtext));
this in its own public
public GangName(playerid, Gang)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), ARS_ACCOUNTS, name);
PlayerInfo[playerid][pGang] = Gang;
dini_IntSet(file, "Gang",PlayerInfo[playerid][pGang]);
return 1;
}