- 0
Ajutor script
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Alberto.
Problema intalnita (descriere): Am un sistem de pariuri facut de mine, iar la fiecare meci jucat ora:50, foreach-ul care verifica daca cineva a castigat sau nu imi verifica doar pe cel cu id-ul 0. Pe restul jucatorilor nu ii ia in considerare.
Ero(area / rile) / warning-(ul / urile): Nu sunt erori sau avertismente.
Liniile de cod / sursa / script-ul(obligatoriu):
foreach(Player, x)
{
if(PlayerInfo[x][pBilet] == 1)
{
if(echipa1 > echipa2)
{
new Float:cash = PlayerInfo[x][pBaniDepusi] * cota1;
if(PlayerInfo[x][pPariu] == 1)
{
format(string, sizeof(string), "Meciul a fost jucat. Ai castigat %.0f$.", cash);
new money = floatround(cash, floatround_round);
GivePlayerCash(x, money);
SCM(x, COLOR_NEWBIE, "---------------------------------------------------------");
SCM(x, COLOR_NEWBIE, string);
SCM(x, COLOR_NEWBIE, "---------------------------------------------------------");
castig[x] = 1;
return 1;
}
else
{
format(string, sizeof(string), "Meciul a fost jucat. Biletul tau este necastigator.");
SCM(x, COLOR_NEWBIE, "---------------------------------------------------------");
SCM(x, COLOR_NEWBIE, string);
SCM(x, COLOR_NEWBIE, "---------------------------------------------------------");
return 1;
}
}
Imagini / Video (optional): Nu cred ca e necesar.
Ati incercat sa rezolvati singur?: Am incercat sa imi dau seama care e problema, dar nu reusesc. Poate aveti voi vreo solutie, multumesc anticipat tuturor.
3 answers to this question
Recommended Posts