- 0
Problema Script Borrow Bank
-
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
MaRiJuAnA
Am facut un mic script de borrow, dar cand vreau sa-l compilez nu se intampla nimic, imi scrie pur si simplu asta "Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase"
[pawn]enum pInfo
pImprumut,
pImprumut1,
pImprumut2,
pImprumut3,
pImprumut4,
pImprumut5,
pImprumut6,
pImprumut7,
public OnPlayerConnect(playerid)
PlayerInfo[playerid][pImprumut] = 0;
PlayerInfo[playerid][pImprumut1] = 0;
PlayerInfo[playerid][pImprumut2] = 0;
PlayerInfo[playerid][pImprumut3] = 0;
PlayerInfo[playerid][pImprumut4] = 0;
PlayerInfo[playerid][pImprumut5] = 0;
PlayerInfo[playerid][pImprumut6] = 0;
PlayerInfo[playerid][pImprumut7] = 0;
public OnPlayerRegister(playerid, password[])
format(var, 32, "Imprumutat=%d\n",PlayerInfo[playerid][pImprumut]);fwrite(hFile, var);
format(var, 32, "Imprumutat1=%d\n",PlayerInfo[playerid][pImprumut1]);fwrite(hFile, var);
format(var, 32, "Imprumutat2=%d\n",PlayerInfo[playerid][pImprumut2]);fwrite(hFile, var);
format(var, 32, "Imprumutat3=%d\n",PlayerInfo[playerid][pImprumut3]);fwrite(hFile, var);
format(var, 32, "Imprumutat4=%d\n",PlayerInfo[playerid][pImprumut4]);fwrite(hFile, var);
format(var, 32, "Imprumutat5=%d\n",PlayerInfo[playerid][pImprumut5]);fwrite(hFile, var);
format(var, 32, "Imprumutat6=%d\n",PlayerInfo[playerid][pImprumut6]);fwrite(hFile, var);
format(var, 32, "Imprumutat7=%d\n",PlayerInfo[playerid][pImprumut7]);fwrite(hFile, var);
public SavePlayerData(playerid)
format(var, 32, "Imprumutat=%d\n",PlayerInfo[playerid][pImprumut]);fwrite(hFile, var);
format(var, 32, "Imprumutat1=%d\n",PlayerInfo[playerid][pImprumut1]);fwrite(hFile, var);
format(var, 32, "Imprumutat2=%d\n",PlayerInfo[playerid][pImprumut2]);fwrite(hFile, var);
format(var, 32, "Imprumutat3=%d\n",PlayerInfo[playerid][pImprumut3]);fwrite(hFile, var);
format(var, 32, "Imprumutat4=%d\n",PlayerInfo[playerid][pImprumut4]);fwrite(hFile, var);
format(var, 32, "Imprumutat5=%d\n",PlayerInfo[playerid][pImprumut5]);fwrite(hFile, var);
format(var, 32, "Imprumutat6=%d\n",PlayerInfo[playerid][pImprumut6]);fwrite(hFile, var);
format(var, 32, "Imprumutat7=%d\n",PlayerInfo[playerid][pImprumut7]);fwrite(hFile, var);
public OnPlayerLogin(playerid,password[])
if( strcmp( key , "Imprumut" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImprumut] = strval( val ); }
if( strcmp( key , "Imprumut1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImprumut1] = strval( val ); }
if( strcmp( key , "Imprumut2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImprumut2] = strval( val ); }
if( strcmp( key , "Imprumut3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImprumut3] = strval( val ); }
if( strcmp( key , "Imprumut4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImprumut4] = strval( val ); }
if( strcmp( key , "Imprumut5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImprumut5] = strval( val ); }
if( strcmp( key , "Imprumut6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImprumut6] = strval( val ); }
if( strcmp( key , "Imprumut7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImprumut7] = strval( val ); }
OnPlayerCommandText
// BORROW
if(strcmp(cmd, "/borrow", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Use The Next Commands To Borrow From The Bank");
SendClientMessage(playerid, COLOR_WHITE, "/Borrow1000");
SendClientMessage(playerid, COLOR_WHITE, "/Borrow5000");
SendClientMessage(playerid, COLOR_WHITE, "/Borrow10000");
SendClientMessage(playerid, COLOR_WHITE, "/Borrow25000");
SendClientMessage(playerid, COLOR_WHITE, "/Borrow50000");
SendClientMessage(playerid, COLOR_WHITE, "/Borrow75000");
SendClientMessage(playerid, COLOR_WHITE, "/Borrow100000");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Already Borrowed From The Bank, Please, Pay The Amount You Borrowed Back To Borrow Again.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/borrow1000", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut] == 1)
{
GivePlayerMoney(playerid, 1000);
SendClientMassage(playerid, COLOR_WHITE, "You Borrowed 1000$, Please Pay The Amount Back Or You Will Not Be Able To LevelUp");
PlayerInfo[playerid][pImprumut] = 1;
PlayerInfo[playerid][pImprumut1] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Already Borrowed From The Bank, Please, Pay The Amount You Borrowed Back To Borrow Again.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/borrow5000", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut] == 1)
{
GivePlayerMoney(playerid, 5000);
SendClientMassage(playerid, COLOR_WHITE, "You Borrowed 5000$, Please Pay The Amount Back Or You Will Not Be Able To LevelUp");
PlayerInfo[playerid][pImprumut] = 1;
PlayerInfo[playerid][pImprumut2] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Already Borrowed From The Bank, Please, Pay The Amount You Borrowed Back To Borrow Again.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/borrow10000", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut] == 1)
{
GivePlayerMoney(playerid, 10000);
SendClientMassage(playerid, COLOR_WHITE, "You Borrowed 10000$, Please Pay The Amount Back Or You Will Not Be Able To LevelUp");
PlayerInfo[playerid][pImprumut] = 1;
PlayerInfo[playerid][pImprumut3] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Already Borrowed From The Bank, Please, Pay The Amount You Borrowed Back To Borrow Again.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/borrow25000", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut] == 1)
{
GivePlayerMoney(playerid, 25000);
SendClientMassage(playerid, COLOR_WHITE, "You Borrowed 25000$, Please Pay The Amount Back Or You Will Not Be Able To LevelUp");
PlayerInfo[playerid][pImprumut] = 1;
PlayerInfo[playerid][pImprumut4] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Already Borrowed From The Bank, Please, Pay The Amount You Borrowed Back To Borrow Again.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/borrow50000", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut] == 1)
{
GivePlayerMoney(playerid, 50000);
SendClientMassage(playerid, COLOR_WHITE, "You Borrowed 50000$, Please Pay The Amount Back Or You Will Not Be Able To LevelUp");
PlayerInfo[playerid][pImprumut] = 1;
PlayerInfo[playerid][pImprumut5] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Already Borrowed From The Bank, Please, Pay The Amount You Borrowed Back To Borrow Again.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/borrow75000", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut] == 1)
{
GivePlayerMoney(playerid, 75000);
SendClientMassage(playerid, COLOR_WHITE, "You Borrowed 75000$, Please Pay The Amount Back Or You Will Not Be Able To LevelUp");
PlayerInfo[playerid][pImprumut] = 1;
PlayerInfo[playerid][pImprumut6] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Already Borrowed From The Bank, Please, Pay The Amount You Borrowed Back To Borrow Again.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/borrow100000", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut] == 1)
{
GivePlayerMoney(playerid, 100000);
SendClientMassage(playerid, COLOR_WHITE, "You Borrowed 100000$, Please Pay The Amount Back Or You Will Not Be Able To LevelUp");
PlayerInfo[playerid][pImprumut] = 1;
PlayerInfo[playerid][pImprumut7] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You Already Borrowed From The Bank, Please, Pay The Amount You Borrowed Back To Borrow Again.");
return 1;
}
}
return 1;
}
//PAYAMOUNT
if(strcmp(cmd, "/PayAmountBack", true) == 0) // By marijuana
{
if(PlayerInfo[playerid][pImprumut1] == 1)
{
if(PlayerInfo[playerid][pImprumut2] == 1)
{
if(PlayerInfo[playerid][pImprumut3] == 1)
{
if(PlayerInfo[playerid][pImprumut4] == 1)
{
if(PlayerInfo[playerid][pImprumut5] == 1)
{
if(PlayerInfo[playerid][pImprumut6] == 1)
{
if(PlayerInfo[playerid][pImprumut7] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "You are about to pay your debt to the bank);
}
else
{
GivePlayerMoney(playerid, -1000);
SendClientMassage(playerid, COLOR_WHITE, "You Payed Your Debt To The Bank. You Can Now LevelUp.");
PlayerInfo[playerid][pImprumut] = 0;
PlayerInfo[playerid][pImprumut1] = 0;
}
return 1;
}
else
{
GivePlayerMoney(playerid, -5000);
SendClientMassage(playerid, COLOR_WHITE, "You Payed Your Debt To The Bank. You Can Now LevelUp.");
PlayerInfo[playerid][pImprumut] = 0;
PlayerInfo[playerid][pImprumut2] = 0;
}
return 1;
}
else
{
GivePlayerMoney(playerid, -10000);
SendClientMassage(playerid, COLOR_WHITE, "You Payed Your Debt To The Bank. You Can Now LevelUp.");
PlayerInfo[playerid][pImprumut] = 0;
PlayerInfo[playerid][pImprumut3] = 0;
}
return 1;
}
else
{
GivePlayerMoney(playerid, -25000);
SendClientMassage(playerid, COLOR_WHITE, "You Payed Your Debt To The Bank. You Can Now LevelUp.");
PlayerInfo[playerid][pImprumut] = 0;
PlayerInfo[playerid][pImprumut4] = 0;
}
return 1;
}
else
{
GivePlayerMoney(playerid, -50000);
SendClientMassage(playerid, COLOR_WHITE, "You Payed Your Debt To The Bank. You Can Now LevelUp.");
PlayerInfo[playerid][pImprumut] = 0;
PlayerInfo[playerid][pImprumut5] = 0;
}
return 1;
}
else
{
GivePlayerMoney(playerid, -75000);
SendClientMassage(playerid, COLOR_WHITE, "You Payed Your Debt To The Bank. You Can Now LevelUp.");
PlayerInfo[playerid][pImprumut] = 0;
PlayerInfo[playerid][pImprumut6] = 0;
}
return 1;
}
else
{
GivePlayerMoney(playerid, -100000);
SendClientMassage(playerid, COLOR_WHITE, "You Payed Your Debt To The Bank. You Can Now LevelUp.");
PlayerInfo[playerid][pImprumut] = 0;
PlayerInfo[playerid][pImprumut7] = 0;
return 1;
}
}
return 1;
}[/pawn]
Asta este ce-am facut, daca observati vreo eroare, sau ceva, da-ti un reply
6 answers to this question
Recommended Posts