07.11.2015, 12:46
I have a problem everything works but there is a problem with mam este in gamemode case 0:
and I have him in this MoneyScore too there is a case 0:
So fasten server Everything is running but I'm going to buy Slokeny (MoneyScore) and when you buy it so mito writes vskaz stacks gamemode where I have given SendClientMessage: nemas enough money to buy sick of this vehicle, is 8 Million
suddenly I got a problem and nwm how I solve pls advise me
I was exhausted afterwards a lot of ideas how you do it but when there is this one so much it will not work
Here Code will give you what form here
There is MoneyScore :
#include <a_samp>
#define SPD ShowPlayerDialog
#define DIALOG_MONEYSCORE 5
#define MSID 5
#define sloken 100
#pragma tabsize 0
new MoneyScore;
new MoneyScore2;
new MoneyScore3;
public OnFilterScriptInit()
{
print("\n--------------Loading-(45%)-----------");
print("::::::::::::::::");
print("--------------------------------------\n");
print("\n--------------Loading-(62%)-----------");
print(":::::::::::::::::::::::::::");
print("--------------------------------------\n");
print("\n--------------Loading-(100%)----------");
print("::::::::::::::::::::::::::::::::::::::");
print("--------------------------------------\n");
print("\n---------------Loading---------------");
print("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO");
print("O FilterScript: ScoreSystem O");
print("O Web: http://hellsarkcz.4fan.cz O");
print("O Vyrobil: TedakCZ O");
print("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO");
MoneyScore = CreatePickup(1256, -1, 1037.1697,1014.4144,11.0000, -1);
MoneyScore2 = CreatePickup(1256, -1, 328.3159,-1511.9908,36.0325, -1);
MoneyScore3 = CreatePickup(1256, -1, -2054.0076,379.4290,35.1719, -1);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
GetPlayerScore(playerid);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MoneyScore)
{
SPD(playerid,DIALOG_MONEYSCORE,MSID,"Smenarna LV","Sloken\tPenize\n15\t50,000$","Smenit","Spatky ");
}
if(pickupid == MoneyScore2)
{
SPD(playerid,DIALOG_MONEYSCORE,MSID,"Směnarna LS","Sloken\tPenize\n15\t50,000$","Smenit","Spatky ");
}
if(pickupid == MoneyScore3)
{
SPD(playerid,DIALOG_MONEYSCORE,MSID,"Smenarna SF","Sloken\tPenize\n15\t50,000$","Smenit","Spatky ");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MONEYSCORE){
if(response)
return 1;
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 50000)
return SendClientMessage(playerid, 0xff0000AA, "Nemas dostatek penez ke koupi Slokenu");
GivePlayerMoney(playerid, -50000);
SendClientMessage(playerid, 0x33aa44AA, "Pravě sis koupil 15 Slokenu");
SetPlayerScore(playerid, 15);
return 1;
}
}
}
}
return 1;
}
Please help me Thanks (CZ/SK/EN)
and I have him in this MoneyScore too there is a case 0:
So fasten server Everything is running but I'm going to buy Slokeny (MoneyScore) and when you buy it so mito writes vskaz stacks gamemode where I have given SendClientMessage: nemas enough money to buy sick of this vehicle, is 8 Million
suddenly I got a problem and nwm how I solve pls advise me
I was exhausted afterwards a lot of ideas how you do it but when there is this one so much it will not work
Here Code will give you what form here
There is MoneyScore :
#include <a_samp>
#define SPD ShowPlayerDialog
#define DIALOG_MONEYSCORE 5
#define MSID 5
#define sloken 100
#pragma tabsize 0
new MoneyScore;
new MoneyScore2;
new MoneyScore3;
public OnFilterScriptInit()
{
print("\n--------------Loading-(45%)-----------");
print("::::::::::::::::");
print("--------------------------------------\n");
print("\n--------------Loading-(62%)-----------");
print(":::::::::::::::::::::::::::");
print("--------------------------------------\n");
print("\n--------------Loading-(100%)----------");
print("::::::::::::::::::::::::::::::::::::::");
print("--------------------------------------\n");
print("\n---------------Loading---------------");
print("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO");
print("O FilterScript: ScoreSystem O");
print("O Web: http://hellsarkcz.4fan.cz O");
print("O Vyrobil: TedakCZ O");
print("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO");
MoneyScore = CreatePickup(1256, -1, 1037.1697,1014.4144,11.0000, -1);
MoneyScore2 = CreatePickup(1256, -1, 328.3159,-1511.9908,36.0325, -1);
MoneyScore3 = CreatePickup(1256, -1, -2054.0076,379.4290,35.1719, -1);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
GetPlayerScore(playerid);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MoneyScore)
{
SPD(playerid,DIALOG_MONEYSCORE,MSID,"Smenarna LV","Sloken\tPenize\n15\t50,000$","Smenit","Spatky ");
}
if(pickupid == MoneyScore2)
{
SPD(playerid,DIALOG_MONEYSCORE,MSID,"Směnarna LS","Sloken\tPenize\n15\t50,000$","Smenit","Spatky ");
}
if(pickupid == MoneyScore3)
{
SPD(playerid,DIALOG_MONEYSCORE,MSID,"Smenarna SF","Sloken\tPenize\n15\t50,000$","Smenit","Spatky ");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MONEYSCORE){
if(response)
return 1;
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 50000)
return SendClientMessage(playerid, 0xff0000AA, "Nemas dostatek penez ke koupi Slokenu");
GivePlayerMoney(playerid, -50000);
SendClientMessage(playerid, 0x33aa44AA, "Pravě sis koupil 15 Slokenu");
SetPlayerScore(playerid, 15);
return 1;
}
}
}
}
return 1;
}
Please help me Thanks (CZ/SK/EN)