01.02.2015, 08:45
When i add this script : Pawn Compiler Library has stopped working ,, ?
what i going to do ?
code ->
please help
what i going to do ?
code ->
Quote:
CMD:gifts(playerid, params[]) { new string[128]; /* if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger opens their backpack and sees how many tikis they have."); else format(string, sizeof(string), "* %s opens their backpack and sees how many tikis they have.", GetPlayerNameEx( playerid ) ); ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);*/ format(string, sizeof(string), "You have %d Gift Boxes.", PlayerInfo[playerid][pEggs]); SendClientMessageEx(playerid,COLOR_GREY,string); return 1; } CMDickgift(playerid, params[]) { for(new i = 0; i < sizeof(MystEggInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 2.0, MystEggInfo[i][meX], MystEggInfo[i][meY], MystEggInfo[i][meZ])) { if(MystEggInfo[i][meCreated] == 1) { new string[128]; new location[MAX_ZONE_NAME]; GameTextForPlayer(playerid, "You have found 1 ~r~ Gift Box!", 1500, 1); SendClientMessage(playerid, COLOR_ORANGE,"You can exchange your Gift Box at Christmas Gift Box"); PlayerInfo[playerid][pEggs] += 1; DeleteClosestMystEgg(playerid); GetPlayer2DZone(playerid, location, MAX_ZONE_NAME); format(string, sizeof(string), "AdmWarning: %s has found 1 Gift Box in %s.", GetPlayerNameEx(playerid), location); ABroadCast(COLOR_LIGHTRED, string, 2); } } } return 1; } CMDlacegift(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6) { SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty."); return 1; } if(IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid,COLOR_GRAD2," You can't do that while in a vehicle !"); } new string[64]; new Float:X,Float:Y,Float:Z; new location[MAX_ZONE_NAME]; GetPlayerPos(playerid,X,Y,Z); CreateMystEgg(X, Y, Z); SetPlayerPos(playerid, X, Y-2, Z); SendClientMessageEx(playerid, COLOR_GRAD1,"* Gift Box created !"); GetPlayer2DZone(playerid, location, MAX_ZONE_NAME); format(string, sizeof(string), "AdmWarning: %s has created a Gift Box in %s.", GetPlayerNameEx(playerid), location); ABroadCast(COLOR_LIGHTRED, string, 2); } else { SendClientMessage(playerid, COLOR_GRAD1, "You're not Authorized to use that command!"); } return 1; } CMD:deletegift(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6) { SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty."); return 1; } if(IsPlayerInAnyVehicle(playerid)) { return SendClientMessageEx(playerid,COLOR_GRAD2," You can't do that while in a vehicle !"); } DeleteClosestMystEgg(playerid); } else { SendClientMessage(playerid, COLOR_GRAD1, "You're not Authorized to use that command!"); } return 1; } CMD:deleteallgift(playerid, params[]) { new string[64]; if(PlayerInfo[playerid][pAdmin] >= 4) { if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6) { SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty."); return 1; } if(IsPlayerInAnyVehicle(playerid)) { return SendClientMessageEx(playerid,COLOR_GRAD2," You can't do that while in a vehicle !"); } DeleteAllMystEgg(); SendClientMessageEx(playerid, COLOR_GRAD2, "* Mystery Eggs destroyed !"); format(string, sizeof(string), "AdmWarning: %s has destroyed all Mystery Eggs.", GetPlayerNameEx(playerid)); ABroadCast(COLOR_LIGHTRED, string, 2); } else { SendClientMessage(playerid, COLOR_GRAD1, "You're not Authorized to use that command!"); } return 1; } |