public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 9001:
{
if(strlen(inputtext) > 0)
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "VIP %s shouted: {00ffff}%s", name, inputtext);
SendClientMessageToAll(0xFFAA3300, string);
}
else
{
SendClientMessage(playerid, 0xFF000000, "Your shout needs to be more than 0 character!");
}
}
}
}
return 1;
}
CMD:shout(playerid,params[])
{
if(IsPlayerVipMember(playerid))
{
ShowPlayerDialog(playerid, 9001, DIALOG_STYLE_INPUT, "Shout", "What do you want to shout?", "Shout", "Cancel");
}
else SendClientMessage(playerid, 0xFF000000, "ERROR: You're not a VIP Member!");
return 1;
}
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK)
SendClientMessageToAll(-1, "teste")
if(strlen(inputtext) > 0)
SendClientMessageToAll(-1, 'teste') if(strlen(inputtext) > 0)
C:\Users\Kelvin\Desktop\Scripting\filterscripts\VIP.pwn(310) : error 027: invalid character constant C:\Users\Kelvin\Desktop\Scripting\filterscripts\VIP.pwn(310) : error 017: undefined symbol "est" C:\Users\Kelvin\Desktop\Scripting\filterscripts\VIP.pwn(310 -- 311) : warning 215: expression has no effect C:\Users\Kelvin\Desktop\Scripting\filterscripts\VIP.pwn(311) : error 001: expected token: ";", but found "if" C:\Users\Kelvin\Desktop\Scripting\filterscripts\VIP.pwn(311) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid == 1)
{
case 9001:
{
SendClientMessageToAll(-1, 'test')
if(strlen(inputtext) > 0)
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "VIP %s shouted: {00ffff}%s", name, inputtext);
SendClientMessageToAll(0xFFAA3300, string);
}
else
{
SendClientMessage(playerid, 0xFF000000, "Your shout needs to be more than 0 character!");
}
}
}
}
return 1;
}
SendClientMessageToAll(-1, "test"); |