24.01.2013, 15:58
Can anyone convert this to if strcmp?? do it and you'll get a reputation
THANK YOU, HELP ME AND YOU'LL GET A REPUTATION!.
Код:
CMD:addpickup(playerid, params[]) { new ModelID, Type; if(unformat(params,"dd",ModelID,Type)) return SendClientMessage(playerid, 0xFFFFFF,"USAGE: /AddPickup < Pickup ID > < Type >"); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); CreateSavedPickup(ModelID,Type,X,Y,Z); new Msg[128]; format(Msg,sizeof(Msg),"Pickup Successfully Created. (Model: %d) (Type: %d)",ModelID,Type); SendClientMessage(playerid, 0xFFFFFF,Msg); return 1; } CMD:removepickup(playerid, params[]) { new PickupID; if(unformat(params,"d",PickupID)) return SendClientMessage(playerid, 0xFFFFFF,"USAGE: /RemovePickup < Pickup ID >"); if(!IsValidDynamicPickup(pInfo[PickupID][PID])) return SendClientMessage(playerid, 0xFFFFFFF, "ERROR: Pickup Does Not Exist!"); DestroyDynamicPickup(pInfo[PickupID][PID]); format(pFile, sizeof(pFile), PICKUPFILE, PickupID); if(dini_Exists(pFile)) { dini_Remove(pFile); dini_IntSet(pIDFile, "Total Pickups:", dini_Int(pIDFile, "Total Pickups:")-1); } new Msg[128]; format(Msg,sizeof(Msg),"Pickup ID: %d Was 1Destroyed!",PickupID); SendClientMessage(playerid, 0xFFFFFFF,Msg); return 1; }