if(strcmp(cmd, "/contrato", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
return true;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
return true;
}
moneys = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
return true;
}
if(moneys < 10000)
{
SendClientMessage(playerid, COLOR_GREY, " Contrato Minimo 10k (10000)");
return true;
}
if(PlayerInfo[playerid][pLevel] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк precisa de no minimo nivel 4.");
return true;
}
if(GetPlayerMoney(playerid) < moneys)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem esta grana toda.");
return true;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoneyEx(playerid);
if (moneys > 0 && playermoney >= moneys)
{
if(strcmp(tmp,"Hitman",true) == 0)
{
GivePlayerMoneyEx(playerid, (0 - moneys));
PlayerInfo[giveplayerid][pHeadValue]+=moneys;
format(string, sizeof(string), "HITMANS: %s Colocou um contrato em %s, por $%d.",sendername, giveplayer, moneys);
SendFamilyMessage(8, COLOR_YELLOW, string);
format(string, sizeof(string), "*HITMANS: Vocк colocou um contrato em %s, por $%d.",giveplayer, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return true;
}
if(strcmp(tmp,"triad",true) == 0)
{
GivePlayerMoneyEx(playerid, (0 - moneys));
PlayerInfo[giveplayerid][pHeadValueT]+=moneys;
format(string, sizeof(string), "TRIADS: %s Colocou um contrato em %s, por $%d.",sendername, giveplayer, moneys);
SendFamilyMessage(22, COLOR_YELLOW, string);
format(string, sizeof(string), "*TRIADS: Vocк colocou um contrato em %s, por $%d.",giveplayer, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return true;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " USE: /contrato [id] [Quantia] TRIAD ou HITMAN");
return true;
}
}
format(string, sizeof(string), " Vocк nгo tem R$%d em mгos!", moneys);
SendClientMessage(playerid, COLOR_WHITE, string);
return true;
}
else
{
format(string, sizeof(string), " %d nгo й um jogador ativo.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
}//not connected
return true;
C:\Users\Jeferson\Desktop\samp03\pawno\include\sei f_walk.inc(39) : error 004: function "Walk_OnPlayerKeyStateChange" is not implemented C:\Users\Jeferson\Desktop\samp03\pawno\include\ser vermoneyGM.inc(16) : error 004: function "GMExit" is not implemented C:\Users\Jeferson\Desktop\samp03\pawno\include\ser vermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented C:\Users\Jeferson\Desktop\BGT.pwn(979) : error 004: function "SaveCars" is not implemented C:\Users\Jeferson\Desktop\BGT.pwn(1996) : error 017: undefined symbol "GetPlayerOrg" C:\Users\Jeferson\Desktop\BGT.pwn(2003) : error 017: undefined symbol "GetPlayerOrg" C:\Users\Jeferson\Desktop\BGT.pwn(2042) : error 017: undefined symbol "GetName" C:\Users\Jeferson\Desktop\BGT.pwn(2043) : error 017: undefined symbol "GetName" C:\Users\Jeferson\Desktop\BGT.pwn(2044) : error 017: undefined symbol "GetName" C:\Users\Jeferson\Desktop\BGT.pwn(2094) : error 004: function "PlayerToPoint" is not implemented C:\Users\Jeferson\Desktop\BGT.pwn(2104) : error 004: function "OnPlayerText" is not implemented C:\Users\Jeferson\Desktop\BGT.pwn(2104) : error 004: function "OnPlayerText" is not implemented C:\Users\Jeferson\Desktop\BGT.pwn(3505) : error 004: function "ClearChatbox" is not implemented C:\Users\Jeferson\Desktop\BGT.pwn(3597) : error 004: function "ClearChatbox" is not implemented C:\Users\Jeferson\Desktop\BGT.pwn(3614) : error 004: function "ClearChatbox" is not implemented C:\Users\Jeferson\Desktop\BGT.pwn(5005) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5047) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5089) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5131) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5160) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5189) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(521 : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5247) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5276) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5324) : error 017: undefined symbol "IsNumero" C:\Users\Jeferson\Desktop\BGT.pwn(5353) : error 017: undefined symbol "IsNumero" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. |
if(strcmp(cmd, "/contrato", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
return true;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
return true;
}
moneys = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /contrato [ID/Nome] [Quantia] [Organizaзгo(Triad ou Hitman)]");
return true;
}
if(moneys < 10000)
{
SendClientMessage(playerid, COLOR_GREY, " Contrato Minimo 10k (10000)");
return true;
}
if(PlayerInfo[playerid][pLevel] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк precisa de no minimo nivel 4.");
return true;
}
if(GetPlayerMoney(playerid) < moneys)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem esta grana toda.");
return true;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoneyEx(playerid);
if (moneys > 0 && playermoney >= moneys)
{
if(strcmp(tmp,"Hitman",true) == 0)
{
GivePlayerMoneyEx(playerid, (0 - moneys));
PlayerInfo[giveplayerid][pHeadValue]+=moneys;
format(string, sizeof(string), "HITMANS: %s Colocou um contrato em %s, por $%d.",sendername, giveplayer, moneys);
SendFamilyMessage(8, COLOR_YELLOW, string);
format(string, sizeof(string), "*HITMANS: Vocк colocou um contrato em %s, por $%d.",giveplayer, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return true;
}
if(strcmp(tmp,"triad",true) == 0)
{
GivePlayerMoneyEx(playerid, (0 - moneys));
PlayerInfo[giveplayerid][pHeadValueT]+=moneys;
format(string, sizeof(string), "TRIADS: %s Colocou um contrato em %s, por $%d.",sendername, giveplayer, moneys);
SendFamilyMessage(22, COLOR_YELLOW, string);
format(string, sizeof(string), "*TRIADS: Vocк colocou um contrato em %s, por $%d.",giveplayer, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return true;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " USE: /contrato [id] [Quantia] TRIAD ou HITMAN");
return true;
}
}
format(string, sizeof(string), " Vocк nгo tem R$%d em mгos!", moneys);
SendClientMessage(playerid, COLOR_WHITE, string);
return true;
}
else
{
format(string, sizeof(string), " %d nгo й um jogador ativo.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
}//not connected
return true;
}
PHP код:
|