11.11.2013, 17:18
I dont know where the problem..
If i have more than 15 XP it should write Accepted
if lower than 15 Need More XP.
I cant understand why it bugs..
If i have more than 15 XP it should write Accepted
if lower than 15 Need More XP.
I cant understand why it bugs..
pawn Код:
#include <a_samp>
new PlayerScore;
new pickupas;
public OnGameModeInit()
{
pickupas = CreatePickup(1314, 2, 2026.5564, 1344.3346, 10.8203, -1);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickupas)
{
ShowPlayerDialog(playerid, pickupas, DIALOG_STYLE_LIST, "{FFFFFF}JOB", "{FFFF00}Take Job\n{FFFF00}Leave Job", "OK", "Cancel");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == pickupas)
{
if(response)
{
if(listitem == 0)
{
if(PlayerScore <= 15)
{
SendClientMessage(playerid, -1, "Accepted");
}else{SendClientMessage(playerid, -1, "Need more XP.");}
}
}
}
return 1;
}