11.09.2011, 11:30
(
Последний раз редактировалось knackworst; 11.09.2011 в 12:21.
)
Ahh, so I must make a variable and use it like this: giveplayermoney(playerid,finalspeed_int*2)?
EDIT:
I get the message, but the money doesn't change :/
EDIT:
pawn Код:
if(dialogid == DIALOG_PAYME)
{
if(!response)
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s(%d) has ignored their ticket for driving to fast. Get that idiot!",name,playerid);
SendClientMessageToAllCops(string);
SendClientMessage(playerid,COLOR_ORANGE,"You have ignored your ticket, and your wanted level has increased by 2!");
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 2);
}
else
{
SendClientMessage(playerid,COLOR_SEXYGREEN,"You have paid your ticket!");
GivePlayerMoney(playerid,finalspeed_int[playerid]*2);
}
}