DINI and STRINGS
#2

Tried it like this :


Код:
YCMD:login(playerid, params[], help)
{
    new pFile[100], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(pFile, sizeof(pFile), "Accounts/%s.ini", pName);
    new string[256],string2[256];
    format(string,sizeof(string),"%s",dini_Get(pFile,"Password"));
    format(string2,sizeof(string),"%s",params);
    
    if(!dini_Exists(pFile)) return SendClientMessage(playerid,0x00FF00AA,"You are not registered! Please /register");
    if(!string = string2) return  SendClientMessage(playerid,0x00FF00AA,"wrong!");
	if(string = string2) return SendClientMessage(playerid,0x00FF00AA,"WORKS YEAAAAAAA");
	else return 1;
	}
but now, when i type the password correctly i get the Wrong! message and when i try again ( wrong or correct ) it shows me UNKNOWN COMMAND
Reply


Messages In This Thread
DINI and STRINGS - by [JnA]DukeNukem - 04.08.2011, 08:47
Re: DINI and STRINGS - by [JnA]DukeNukem - 04.08.2011, 08:59
Re: DINI and STRINGS - by FireCat - 04.08.2011, 09:01
Re: DINI and STRINGS - by [JnA]DukeNukem - 04.08.2011, 09:05
Re: DINI and STRINGS - by FireCat - 04.08.2011, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)