03.04.2011, 09:13
oh i forgot about the callbacks..
pawn Код:
public LoginValue ( playerid , name [ ] , value [ ] ) {
if ( strcmp ( name , "Password" , false ) == 0 ) {
Account [ playerid ] [ Password ] = strval ( value ) ;
}
if ( strcmp ( name , "Kills" , false ) == 0 ) {
Account [ playerid ] [ Kills ] = strval ( value ) ;
}
if ( strcmp ( name , "Deaths" , false ) == 0 ) {
Account [ playerid ] [ Deaths ] = strval ( value ) ;
}
if ( strcmp ( name , "Score" , false ) == 0 ) {
Account [ playerid ] [ Score ] = strval ( value ) ;
}
if ( strcmp ( name , "Money" , false ) == 0 ) {
Account [ playerid ] [ Money ] = strval ( value ) ;
}
if ( strcmp ( name , "Level" , false ) == 0 ) {
Account [ playerid ] [ Level ] = strval ( value ) ;
}
if ( strcmp ( name , "VIP" , false ) == 0 ) {
Account [ playerid ] [ VIP ] = strval ( value ) ;
}
return 1;
}