public OnPlayerCommandText(playerid, cmdtext[]) if(strcmp(cmdtext,"/Sertaxista", true) == 0) { if(Profissao[playerid] == 0) { SendClientMessage(playerid,0xB360FDFF,"Ola parabens voce й taxista e dirigi um taxi"); } else { SendClientMessage(playerid,0xB360FDFF,"Vocк nгo й taxista e nгo pode usar este comando"); } return 1; } if(strcmp(cmdtext,"/Sermecanico", true) == 0) { if(Profissao[playerid] == 1) { SendClientMessage(playerid,0xB360FDFF,"Ola parabens voce й taxista e dirigi um taxi"); } else { SendClientMessage(playerid,0xB360FDFF,"Vocк nгo й taxista e nгo pode usar este comando"); } return 1; }
C:\Users\leonardo\Desktop\Server\gamemodes\serverleo.pwn(145) : warning 202: number of arguments does not match definition C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(146) : warning 213: tag mismatch C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(189) : warning 217: loose indentation C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(193) : warning 217: loose indentation C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(221) : warning 217: loose indentation C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(225) : warning 217: loose indentation C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(228) : warning 209: function "OnPlayerCommandText" should return a value C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(228) : error 010: invalid function or declaration C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(230) : error 010: invalid function or declaration C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(234) : error 010: invalid function or declaration C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(238) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/Sertaxista", true) == 0)
{
if(Profissao[playerid] == 0)
{
SendClientMessage(playerid,0xB360FDFF,"Ola parabens voce й taxista e dirigi um taxi");
}
else
{
SendClientMessage(playerid,0xB360FDFF,"Vocк nгo й taxista e nгo pode usar este comando");
}
return true;
}
if(strcmp(cmdtext,"/Sermecanico", true) == 0)
{
if(Profissao[playerid] == 1)
{
SendClientMessage(playerid,0xB360FDFF,"Ola parabens voce й taxista e dirigi um taxi");
}
else
{
SendClientMessage(playerid,0xB360FDFF,"Vocк nгo й taxista e nгo pode usar este comando");
}
return 1;
}
return 0;
}
C:\Users\o\Desktop\Server\gamemodes\serverleo.pwn(189) : warning 217: loose indentation
public OnPlayerDeath ( playerid, killerid, reason )
{
if ( Profissao [ playerid ] == 0 )
{
SetPlayerColor ( playerid, -1 ) ;
}
if ( Mecanico [ playerid ] == 1 )
{
SetPlayerColor ( playerid, -1 ) ;
}
SendDeathMessage ( killerid, playerid, reason ) ;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason) { if(Profissao[playerid] == 0) {//abria a chave SetPlayerColor(playerid, -1);//vai colocar a cor rosa nele.. }//Fecha a chave if(Mecanico[playerid] == 1) {//abria a chave SetPlayerColor(playerid, -1);//vai colocar a cor rosa nele.. }//Fecha a chave SendDeathMessage(killerid, playerid, reason); return 1; } |
public OnPlayerDeath(playerid, killerid, reason)
{
if(Profissao[playerid] == 0)
{
//abria a chave
SetPlayerColor(playerid, -1);//vai colocar a cor rosa nele..
}//Fecha a chave
if(Mecanico[playerid] == 1)
{
//abria a chave
SetPlayerColor(playerid, -1);//vai colocar a cor rosa nele..
}//Fecha a chave
SendDeathMessage(killerid, playerid, reason);
return 1;
}