ini SetString problem
#1

Код:
public OnPlayerRegister( playerid, password[ ] )
{
    new p_str[ 48 ], str[ 32 ], playerFile;
   	format( p_str, sizeof( p_str ), PLAYER_FILE, PlayerName( playerid ) );
 	if( !fexist( p_str ) )
 	{
 	    new hour, minute, second;
 	    getdate( gYear, gMonth, gDay );
 	    gettime( hour, minute, second );
	 	playerFile = ini_createFile ( p_str );
		format( str, sizeof( str ), "%i/%s/%i - %02d:%02d:%02d", gDay, Months[ gMonth-1 ], gYear, hour, minute, second );
	ini_setString ( playerFile, "Date_Registered", str );
		ini_setString ( playerFile, "Password_hash", Whirlpool_hash( password ) );
	                     //ini_setString ( playerFile, "Admin", 0);
		//ini_setString ( playerFile, "Admin", Account[playerid][Admin] = 0);		ini_closeFile ( playerFile );
		SendClientMessage( playerid, RULE, "finish" );
		PlayerPlaySound( playerid, 1058, 0.0, 0.0, 0.0 );
		SetPVarInt( playerid, "pLogged", 1 );
I want to do a query if someone is admin but it'll always fail
what is here wrong
I want him to write in the ini file Admin == 0
Код:
C:\AV.pwn(4819) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
ini SetString problem - by SanAndreasVille - 01.10.2011, 22:13
Re: ini SetString problem - by [HiC]TheKiller - 01.10.2011, 22:55
AW: ini SetString problem - by SanAndreasVille - 01.10.2011, 23:18
AW: ini SetString problem - by SanAndreasVille - 10.10.2011, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)