Question
#1

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);
Reply


Messages In This Thread
Question - by Jimbo01 - 21.01.2011, 18:13
Re: Question - by Kwarde - 21.01.2011, 18:15
Re: Question - by Joe Staff - 21.01.2011, 18:16
Re: Question - by MadeMan - 21.01.2011, 18:17
Re: Question - by Joe Staff - 21.01.2011, 18:19
Re: Question - by Sascha - 21.01.2011, 18:20
Re: Question - by Kwarde - 21.01.2011, 18:20
Re: Question - by MadeMan - 21.01.2011, 18:21
Re: Question - by Kwarde - 21.01.2011, 18:22
Re: Question - by Joe Staff - 21.01.2011, 18:23

Forum Jump:


Users browsing this thread: 3 Guest(s)