- เครดิต
- 128
- ความรู้
-
- เงิน $
-
- ความดี
-
|
แก้ไขครั้งสุดท้ายโดย lolallz เมื่อ 2018-5-5 21:55
ผมลองยัดดาวดูแล้วมันไปยัดมั่วผิด ID ฮะ ช่วยดูหน่อยฮะ
Dialog:PlaceCharge(playerid, response, listitem, inputtext[])
{
new userid;//, crime[128];
if (GetFactionType(playerid) != FACTION_POLICE || !IsACruiser(GetPlayerVehicleID(playerid)) || PlayerData[playerid][pMDCPlayer] == INVALID_PLAYER_ID)
return 0;
if (userid == playerid)
return SendErrorMessage(playerid, "You can't charge yourself!");
if (response)
{
if (isnull(inputtext))
return Dialog_Show(playerid, PlaceCharge, DIALOG_STYLE_INPUT, "Place Charge", "Please enter the description of the crime committed by %s:", "Submit", "Back", ReturnName(PlayerData[playerid][pMDCPlayer], 0));
PlayerData[PlayerData[playerid][pMDCPlayer]][pWarrants]++;
AddWarrant(PlayerData[playerid][pMDCPlayer], playerid, inputtext);
SendFactionMessage(PlayerData[playerid][pFaction], COLOR_RADIO, "RADIO: %s has placed a charge on %s for \"%s\".", ReturnName(playerid, 0), ReturnName(PlayerData[playerid][pMDCPlayer], 0), inputtext);
//strmid(PlayerData[userid][pLastCrime], crime, 0, strlen(crime), 255);
PlayerData[userid][pWantedLevel] += 1;
SetPlayerWantedLevel(userid,PlayerData[userid][pWantedLevel]);
PlayerData[userid][pCrime] += 1;
cmd_mdc(playerid, "\1");
}
else
{
PlayerData[playerid][pMDCPlayer] = INVALID_PLAYER_ID;
cmd_mdc(playerid, "\1");
}
return 1;
}
|
|