CMD:vips(playerid)
{
new string[90];
SendClientMessage(playerid, 0xADFF2FFF, "Todos os Vips online");
new count= 0;
for(new i = 0 ; i < MAX_PLAYERS+1; i++)
{
if(IsPlayerConnected(i))
{
if(Logado[playerid] == true)
{
if(IsPlayervip)
{
format(string,90,"Vip: %s",Nome(i));
SendClientMessage(playerid, -1, string);
count++;
}
}
}
}
if(count == 0) return SendClientMessage(playerid, COR_BRANCO, "Nгo tem nem um player vip online no momento.");
return 1;
}
CMD:vips(playerid) { new string[90]; SendClientMessage(playerid, 0xADFF2FFF, "Todos os Vips online"); new count= 0; for(new i = 0 ; i < MAX_PLAYERS+1; i++) { if(IsPlayerConnected(i)) { if(Logado[playerid] == true) { if(IsPlayervip) { format(string,90,"Vip: %s",Nome(i)); SendClientMessage(playerid, -1, string); count++; } } } } if(count == 0) return SendClientMessage(playerid, COR_BRANCO, "Nгo tem nem um player vip online no momento."); return 1; }
if(IsPlayervip(i))
CMD:vips(playerid)
{
new string[90];
SendClientMessage(playerid, 0xADFF2FFF, "Todos os Vips online");
new count= 0;
for(new i; i < MAX_PLAYERS+1; i++)
{
if(IsPlayerConnected(i))
{
if(Logado[playerid] == true)
{
if(IsPlayerVip(i))
{
format(string,90,"Vip: %s", Nome(i));
SendClientMessage(playerid, -1, string);
count++;
}
}
}
}
if(count == 0) return SendClientMessage(playerid, COR_BRANCO, "Nгo tem nem um player vip online no momento.");
return 1;
}
CMD:vips(playerid)
{
new string[90];
SendClientMessage(playerid, 0xADFF2FFF, "Todos os Vips online");
new count= 0;
for(new i; i < MAX_PLAYERS+1; i++)
{
if(IsPlayerConnected(i))
{
if(Logado[playerid] == true)
{
if(IsPlayerVIP(i))
{
format(string,90,"Vip: %s", Nome(i));
SendClientMessage(playerid, -1, string);
count++;
}
}
}
}
if(count == 0) return SendClientMessage(playerid, COR_BRANCO, "Nгo tem nem um player vip online no momento.");
return 1;
}
CMD:vips(playerid)
{
new string[90];
SendClientMessage(playerid, 0xADFF2FFF, "Todos os Vips online");
new count= 0;
for(new i; i < MAX_PLAYERS+1; i++)
{
if(IsPlayerConnected(i))
{
if(Logado[playerid] == true)
{
if(IsPlayerVIP(i))
{
format(string,90,"Vip: %s", Nome(i));
SendClientMessage(playerid, -1, string);
count++;
}
}
}
}
if(count == 0) return SendClientMessage(playerid, COR_BRANCO, "Nгo tem nem um player vip online no momento.");
return 1;
}
й IsPlayerVIP nгo IsPlayervip, '-' serio q n percebeu isso?
PHP Code:
|
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(332) : warning 213: tag mismatch
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(632) : error 017: undefined symbol "namez"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Como tira esse warning e esse erro ;-;
PHP Code:
|
#include <foreach>
CMD:vips(playerid)
{
new
string[ 256 ],
jvip
;
SendClientMessage( playerid, 0xADFF2FFF, "Jogadores VIP Online" );
foreach( Player, i )
{
if( IsPlayerVIP( i ))
{
++jvip;
format( gstring, sizeof( gstring ),"%s ( Jogador(a) VIP )", Nome( i ));
SendClientMessage( playerid, -1, gstring );
}
}
if( jvip <= 0 )
{
SendClientMessage( playerid, -1, "x Nгo existe nenhum(a) jogador(a) VIP Online no momento.");
}
return 1;
}