21.01.2011, 18:13
Today i saw in my gamemode that i'm using string "32" but on most of the gamemodes its 64 ? should i change it to 64 ?
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[32];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "accounts/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[32];
format(var, 32, "pKey=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
format(var, 32, "pCash=%d\n", PlayerInfo[playerid][pCash]);fwrite(hFile, var);
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[32];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "accounts/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[32];
format(var, 32, "pKey=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
format(var, 32, "pCash=%d\n", PlayerInfo[playerid][pCash]);fwrite(hFile, var);