01.10.2011, 22:13
Код:
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 );
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.

