11.06.2014, 05:42
For some reason ini writestring is not writing the first character of a players name to their userfile. I'll show you all relevant code below.
Here's what it's writing:
Clearly it's suppose to have a "J" for Jason.
Relevant code:
Thanks for any assistance provided.
Here's what it's writing:
Код:
pVehicleOwner = ason_Budley
Relevant code:
pawn Код:
//part of the players enum
pVehicleOwner[32],
//saving user stock
INI_WriteString(file,"pVehicleOwner", pInfo[playerid][pVehicleOwner]);
//loading user
INI_String("pVehicleOwner",pInfo[playerid][pVehicleOwner], 32);
//the dialog where they purchase a car (saving it to their variable.)
pInfo[playerid][pVehicleOwner] = GetName(playerid);
//The getname stock.
stock GetName(playerid)
{
new string[32];
GetPlayerName(playerid, string,sizeof(string));
return string;
}