error 035: argument type mismatch (argument 2)
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
if(strcmp(cmd, "/armas", true) == 0)
{
GetPlayerPos(playerid, -36.0648,2349.6638,24.3026);
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
SendClientMessage(playerid,-1,"MP5 - /MP5");
SendClientMessage(playerid,-1,"AK47 - /AK47");
SendClientMessage(playerid,-1,"9mm - /9mm");
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
SendClientMessage(playerid,-1,"M4 - /M4");
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
else
{
SendClientMessage(playerid,-1,"Vocк nгo estб na area de compra de armas!");
return 1;
}
GetPlayerPos(playerid, -36.0648,2349.6638,24.3026);
SetPlayerPos(playerid, -36.0648,2349.6638,24.3026);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/armas", true))
{
if(IsPlayerInRangeOfPoint(playerid,10.0,-36.0648,2349.6638,24.3026)
{
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
SendClientMessage(playerid,-1,"MP5 - /MP5");
SendClientMessage(playerid,-1,"AK47 - /AK47");
SendClientMessage(playerid,-1,"9mm - /9mm");
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
SendClientMessage(playerid,-1,"M4 - /M4");
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
else SendClientMessage(playerid,-1,"ERRO: Vocк nгo estб no local para comprar armas");
return true;
}
return false;
}
if(strcmp(cmd, "/armas", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, -36.0648,2349.6638,24.3026))
{
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
SendClientMessage(playerid,-1,"MP5 - /MP5");
SendClientMessage(playerid,-1,"AK47 - /AK47");
SendClientMessage(playerid,-1,"9mm - /9mm");
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
SendClientMessage(playerid,-1,"M4 - /M4");
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
else
{
SendClientMessage(playerid,-1,"Vocк nгo estб na area de compra de armas!");
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
new cmd[0x3C*3];
if(strcmp(cmd, "/armas", true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 15.0, -36.0648,2349.6638,24.3026)) return SendClientMessage(playerid, -1, "<!> Vocк nгo estб na posiзгo de compra de armas!");
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
SendClientMessage(playerid,-1,"MP5 - /MP5");
SendClientMessage(playerid,-1,"AK47 - /AK47");
SendClientMessage(playerid,-1,"9mm - /9mm");
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
SendClientMessage(playerid,-1,"M4 - /M4");
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
return 0x01;
}
return 0x0;
}
Tenso, muito tenso
PHP код:
|
PHP код:
|
pawn Код:
|