01.11.2010, 16:29
(
Последний раз редактировалось Dr.Ghost; 02.11.2010 в 14:01.
)
hello Guys I need use MoneyRush TOO How can FIX IT?
PAWN CODE:
After Compile it:
help try Fix it:
sent to me if work upload at http://uppit.com/ then sent it a link to here public somebody can use it too enjoy.
Here a PAWN code FAILED to compile try FIX it :
http://uppit.com/shak7f5c9yxc/[FS]moneyRush.pwn
PAWN CODE:
pawn Код:
// MONEY BAG WILL BE DROP AFTER RANDOM TIME AND MESSAGE WILL APPEAR TO ALL.. GET IT FAST IF
//Money BAG HAs BE Dropen. !! :-D
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new mbrand;
new Moneybag1;
new Moneybag2;
new Moneybag3;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnPlayerPickUpPickup(playerid, pickupid)
new Moneybag1;
new Moneybag2;
new Moneybag3;
stock MR()
{
mbrand = 1+ random(2);
if(mbrand == 1)
{
MB1();
}
if(mbrand == 2)
{
MB2();
}
if(mbrand == 3)
{
MB3();
}
return 1;
}
stock MB1()
{
Moneybag1 = CreatePickup(1550, 2, -435.7654,-60.1194,58.8750);// The Panopticon In Small Garage
return SendClientMessageToAll(green, "Money Rush! A Money Bag has been dropped in The Panoption.");
}
stock MB2()
{
Moneybag2 = CreatePickup(1550, 2, 571.3318,824.5909,-29.8438);// Hunter Quarry Under Ladder
return SendClientMessageToAll(green, "Money Rush! A Money Bag has been dropped in Hunter Quarry.");
}
stock MB3()
{
Moneybag3 = CreatePickup(1550, 2, -2374.7766,2215.7478,4.9844);// Bayside Behind Light House
return SendClientMessageToAll(green, "Money Rush! A Money Bag has been dropped in Bayside.");
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
new name[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid,name,sizeof(name));
if(pickupid == Moneybag1)
{
format(string, sizeof(string), "%s (%d) has Found the Lost Money Bag in The Panoption that Worth $240000.",name,playerid);
GivePlayerMoney(playerid, 240000);
}
if(pickupid == Moneybag2)
{
format(string, sizeof(string), "%s (%d) has Found the Lost Money Bag in The Hunter Quarry that Worth $180000.",name,playerid);
GivePlayerMoney(playerid, 180000);
}
else if(pickupid == Moneybag3)
{
format(string, sizeof(string), "%s (%d) has Found the Lost Money Bag in Bayside that Worth $200000.",name,playerid);
GivePlayerMoney(playerid, 200000);
}
SendClientMessageToAll(green, string);
DestroyMR();
}
stock DestroyMR()
{
DestroyPickup(Moneybag1);
DestroyPickup(Moneybag2);
DestroyPickup(Moneybag3);
return 1;
}
{
return 1;
}
Quote:
C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(41) : error 003: declaration of a local variable must appear in a compound block C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(41) : error 010: invalid function or declaration C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(7 : error 021: symbol already defined: "OnPlayerPickUpPickup" C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(82) : warning 217: loose indentation C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(84) : error 017: undefined symbol "Moneybag1" C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(100) : error 017: undefined symbol "green" C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(106) : error 017: undefined symbol "Moneybag1" C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(111) : error 055: start of function body without function header C:\Documents and Settings\USER\Desktop\[FS]moneyRush.pwn(112) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Errors. |
sent to me if work upload at http://uppit.com/ then sent it a link to here public somebody can use it too enjoy.
Here a PAWN code FAILED to compile try FIX it :
http://uppit.com/shak7f5c9yxc/[FS]moneyRush.pwn