calin1996 Posted April 24, 2012 Posted April 24, 2012 Eroare: [pawn]D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(3344) : error 017: undefined symbol "PdCar"[/pawn]Liniile:[pawn] if(PdCar == 1 || PdCar == 9) { if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//national guard { if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid,COLOR_GREY," You need Rank 3 to Fly this baby !"); RemovePlayerFromVehicle(playerid); } } else { RemovePlayerFromVehicle(playerid); } }[/pawn]
Don.Capone Posted April 24, 2012 Posted April 24, 2012 nu ai definit PdCar pune la inceputul gm la liniile cu new bla blanew PdCar; I'm back haha !
calin1996 Posted April 24, 2012 Author Posted April 24, 2012 A mers,mai e o problema,eroare:[pawn]D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(53921) : warning 225: unreachable code[/pawn]Si liniile:[pawn] if(strcmp(cmd, "/contract", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]"); return 1; } moneys = strval(tmp); if(moneys < 1000 || moneys > 1000000) { SendClientMessage(playerid, COLOR_GREY, " Contract money must be atleast $1000, and not more then $1000000!"); return 1; } if(PlayerInfo[playerid][pLevel] < 2) { SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to place a Contract."); return 1; } if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pMember] == 8 && PlayerInfo[playerid][pMember] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!"); return 1; } else if(PlayerInfo[giveplayerid][pLeader] == 8 && PlayerInfo[playerid][pMember] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!"); return 1; } else if(PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLeader] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Can't contract a Hitman !"); return 1; } if(PlayerInfo[playerid][pAdmin] == 1) { SendClientMessage(playerid, COLOR_GREY, "* You may not place a contract on admin/testers on duty"); return 1; } if(IsACop(giveplayerid) && moneys < 30000) { SendClientMessage(playerid, COLOR_GREY, "* Only $30000 or above can be placed as a Contract on Cops !"); return 1; } if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "* You cannot Contract yourself!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); playermoney = GetPlayerMoney(playerid); if (moneys > 0 && playermoney >= moneys) { SafeGivePlayerMoney(playerid, (0 - moneys)); PlayerInfo[giveplayerid][pHeadValue]+=moneys; format(string, sizeof(string), "%s has placed a contract on %s, for $%d.",sendername, giveplayer, moneys); SendFamilyMessage(8, COLOR_YELLOW, string); format(string, sizeof(string), "* You placed a contract on %s, for $%d.",giveplayer, moneys); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "[iNFO]: %s (%d) has placed a contract on %s (%d) for $%d", sendername, playerid, giveplayer,giveplayerid, moneys); SendAdminMessage(COLOR_YELLOW,string); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Someone has placed a hit contract on you, you might want protection!"); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } else { SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount."); } } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } SendClientMessage(playerid,COLOR_GREY, "SERVER: You have Typed An Unknown Command, Type /help or /atalk if you need Help!"); return 1;}[/pawn]
Don.Capone Posted April 24, 2012 Posted April 24, 2012 este din cauza ca la sfarsit ai acolo [pawn]return 1; } SendClientMessage(playerid,COLOR_GREY, "SERVER: You have Typed An Unknown Command, Type /help or /atalk if you need Help!"); return 1;}[/pawn] iti da eroarea unreachable code deoarece ai pus return 1 si ai pus dupa aceea iara return 1 incearca asa:[pawn] if(strcmp(cmd, "/contract", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]"); return 1; } moneys = strval(tmp); if(moneys < 1000 || moneys > 1000000) { SendClientMessage(playerid, COLOR_GREY, " Contract money must be atleast $1000, and not more then $1000000!"); return 1; } if(PlayerInfo[playerid][pLevel] < 2) { SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to place a Contract."); return 1; } if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pMember] == 8 && PlayerInfo[playerid][pMember] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!"); return 1; } else if(PlayerInfo[giveplayerid][pLeader] == 8 && PlayerInfo[playerid][pMember] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!"); return 1; } else if(PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLeader] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Can't contract a Hitman !"); return 1; } if(PlayerInfo[playerid][pAdmin] == 1) { SendClientMessage(playerid, COLOR_GREY, "* You may not place a contract on admin/testers on duty"); return 1; } if(IsACop(giveplayerid) && moneys < 30000) { SendClientMessage(playerid, COLOR_GREY, "* Only $30000 or above can be placed as a Contract on Cops !"); return 1; } if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "* You cannot Contract yourself!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); playermoney = GetPlayerMoney(playerid); if (moneys > 0 && playermoney >= moneys) { SafeGivePlayerMoney(playerid, (0 - moneys)); PlayerInfo[giveplayerid][pHeadValue]+=moneys; format(string, sizeof(string), "%s has placed a contract on %s, for $%d.",sendername, giveplayer, moneys); SendFamilyMessage(8, COLOR_YELLOW, string); format(string, sizeof(string), "* You placed a contract on %s, for $%d.",giveplayer, moneys); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "[iNFO]: %s (%d) has placed a contract on %s (%d) for $%d", sendername, playerid, giveplayer,giveplayerid, moneys); SendAdminMessage(COLOR_YELLOW,string); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Someone has placed a hit contract on you, you might want protection!"); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } else { SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount."); } } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } else { SendClientMessage(playerid,COLOR_GREY, "SERVER: You have Typed An Unknown Command, Type /help or /atalk if you need Help!"); return 1;}[/pawn] I'm back haha !
calin1996 Posted April 24, 2012 Author Posted April 24, 2012 Erori:[pawn]D:\lucru\GMM\pawno\include\JunkBuster.inc(1503) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(1521) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(1546) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(1572) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(1589) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(1615) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(1624) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(1634) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(1913) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(2086) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(2642) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(2666) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(2685) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(2956) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(3109) : error 004: function "JB_Ban" is not implementedD:\lucru\GMM\pawno\include\JunkBuster.inc(3250) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2407) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2418) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2436) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2447) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2479) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2495) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2509) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2522) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2535) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2548) : error 004: function "ClearChatbox" is not implementedD:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(2559) : error 004: function "ClearChatbox" is not implementedCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase26 Errors.[/pawn]
Question
calin1996
Eroare:
[pawn]D:\lucru\1_3_samp\1.3 samp\gamemodes\lucru.pwn(3344) : error 017: undefined symbol "PdCar"[/pawn]
Liniile:
[pawn] if(PdCar == 1 || PdCar == 9)
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//national guard
{
if(PlayerInfo[playerid][pRank] < 3)
{
SendClientMessage(playerid,COLOR_GREY," You need Rank 3 to Fly this baby !");
RemovePlayerFromVehicle(playerid);
}
}
else
{
RemovePlayerFromVehicle(playerid);
}
}[/pawn]
6 answers to this question
Recommended Posts