Sziasztok,ma csinaltam egy alap vip rendszert dinivel, ez okes.
De mikor el keszitettem a vips parancsot es nekem 0 volt a szintem azt irta hogy vip vok :S peddig nem kene.Itt a parancs
if ( strcmp( cmd, \"/vips\", true ) == 0 )
{
new a, b[ 128 ], m = GetMaxPlayers() + 1;
for ( a = 0; a < m; a++ )
{
if ( IsPlayerConnected( a ) && IsPlayerValidAdmin( a ) )
{
if ( strlen( b ) ) format( b, 128, \"%s, %s[%d]\", b, gPlayers[ a ], PlayerInfo[ a ][ VipLevel ] );
else format( b, 128, \"%s[%d]\", gPlayers[ a ], PlayerInfo[ a ][ VipLevel ] );
}
}
if ( strlen( b ) )
{
format( szMsg, 128, \"Online V.I.P -ek: %s\", b );
SendClientMessageToAll( BLUE, szMsg );
}
else SendClientMessageToAll( BLUE, \"Nincsen V.I.P a szerveren.\" );
}
Koszonom
Ez az egész egy nagy hülyeség.. mivel csak a te VIP -ed kérdezi le.. másold be a VIP változód..
E:
CMD:vips( playerid , params[ ] ){
new string[ 128 ], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(IsPlayerConnected( playerid ) ){
for (new i = 0; i < MAX_PLAYERS; i++ ){
if(IsPlayerConnected( i ) )
{
if(PlayerInfo[ playerid ][ VipLevel ] == 1 ){
format( string , sizeof( string ) , \" Vips {FC0303}: {00CEFC}%s {FFFFFF}({FC0303}%d{FFFFFF}) \" , name( i ) , i ) ;
SendClientMessage( playerid , green , string ) ; } } } return 1 ; }
xDDDDDDDD Bocs mas napos vok
Tesseg:
C:\\Documents and Settings\\XPPRESP3\\Desktop\\[MBF]Szerver\\gamemodes\\Xmas.pwn(1475) : error 012: invalid function call, not a valid address
C:\\Documents and Settings\\XPPRESP3\\Desktop\\[MBF]Szerver\\gamemodes\\Xmas.pwn(1475) : warning 215: expression has no effect
C:\\Documents and Settings\\XPPRESP3\\Desktop\\[MBF]Szerver\\gamemodes\\Xmas.pwn(1475) : error 001: expected token: \";\", but found \")\"
C:\\Documents and Settings\\XPPRESP3\\Desktop\\[MBF]Szerver\\gamemodes\\Xmas.pwn(1475) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\XPPRESP3\\Desktop\\[MBF]Szerver\\gamemodes\\Xmas.pwn(1475) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase
4 Errors.
format( string , sizeof( string ) , \" Vips :%s (%d) \" , name( i ) , i ) ;