if(strcmp(cmd, "/relatorio", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "Voce nгo estб logado!"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USE: /relatorio [text]"); return 1; } format(string, sizeof(string), "Relatorio de %s(%d)[%d]: %s", sendername, playerid, pVIP, (result)); ABroadCast(COLOR_RED,string,1); SendClientMessage(playerid, COLOR_YELLOW, "Sua mensagem foi enviada aos admins."); } return 1; }
if(strcmp(cmd, "/relatorio", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "Voce nгo estб logado!");
return 1;
}
if(VIP == FALSO)
{
SendClientMessage(playerid, COLOR_GREY, "Voce nгo й um VIP!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /relatorio [text]");
return 1;
}
format(string, sizeof(string), "Relatorio de %s(%d)[%d]: %s", sendername, playerid, pVIP, (result));
ABroadCast(COLOR_RED,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Sua mensagem foi enviada aos admins.");
}
return 1;
}
if(VIP == FALSO)// ops tinha colocado ao contrбrio =P
{
SendClientMessage(playerid, COLOR_GREY, "Voce nгo й um VIP!");
return 1;
}
C:\Users\fernando\Documents\GF.pwn(30015) : error 017: undefined symbol "VIP" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Originally Posted by Guedes_
Duvidas, postem aki http://forum.sa-mp.com/index.php?topic=145461.0
|
Originally Posted by [SFP
$ucr3[CX] « ]
Quote:
|