D:\fuck\filterscripts\tryrob.pwn(26) : error 017: undefined symbol "cp_GymSeven" D:\fuck\filterscripts\tryrob.pwn(27) : error 017: undefined symbol "cp_Shop" D:\fuck\filterscripts\tryrob.pwn(34) : error 017: undefined symbol "cp_GymSeven" D:\fuck\filterscripts\tryrob.pwn(55) : warning 217: loose indentation D:\fuck\filterscripts\tryrob.pwn(61) : warning 209: function "robtimer" should return a value D:\fuck\filterscripts\tryrob.pwn(6 : warning 203: symbol is never used: "GymSeven" D:\fuck\filterscripts\tryrob.pwn(6 : warning 203: symbol is never used: "Shop" |
cp_GymSeven = CreateDynamicCP(-23.4826,-55.6319,1003.5469, 3.0, .interiorid = 9);
cp_Shop = CreateDynamicCP(-104.1407,-22.6708,1000.7188, 3.0, .interiorid = 4);
if ( !IsPlayerInDynamicCP( playerid,cp_GymSeven ) )
new string[128];
}
Not There This Line :D
#include <a_samp>
#include <Streamer>
#include <zcmd>
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_TWBLUE 0x0000FFAA
forward robtimer(playerid);
forward waittimer();
new robpossible;
new Shop;
new GymSeven;
public OnFilterScriptInit()
{
robpossible = 1;
return 1;
}
public OnGameModeInit()
{
cp_GymSeven = CreateDynamicCP(-23.4826,-55.6319,1003.5469, 3.0, .interiorid = 6);
cp_Shop = CreateDynamicCP(-104.1407,-22.6708,1000.7188, 3.0, .interiorid = 3);
return 1;
}
CMD:robbank(playerid, params[])
{
if(robpossible == 1)
{
if ( !IsPlayerInDynamicCP( playerid,cp_GymSeven ) )
{
robpossible = 0;
SetTimer("waittimer", 30000, false);
SetTimer("robtimer", 240000, false);
SendClientMessage(playerid, COLOR_WHITE, "You gotta stay 30 sec in the bank in order to rob it!");
}
} else {
SendClientMessage(playerid, COLOR_WHITE, "You can't rob the bank right now!");
}
return 1;
}
public robtimer(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 4.0, -104.1407,-22.6708,1000.7188))
{
SendClientMessage(playerid, -1, "You failed to rob the bank!");
return 1;
}
new string[128];
new cash = random(200000);
GivePlayerMoney(playerid, cash);
format(string, sizeof(string), "You have successfully robbed $%d from the bank!", cash);
SendClientMessage(playerid, COLOR_WHITE, string);
}
public waittimer()
{
robpossible = 1;
SendClientMessageToAll(COLOR_WHITE, "The bank is now available for robbery!");
}
#include <a_samp>
#include <Streamer>
#include <zcmd>
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_TWBLUE 0x0000FFAA
forward robtimer(playerid);
forward waittimer();
new robpossible;
new cp_GymSeven;
new cp_Shop;
public OnFilterScriptInit()
{
robpossible = 1;
return 1;
}
public OnGameModeInit()
{
cp_GymSeven = CreateDynamicCP(-23.4826,-55.6319,1003.5469, 3.0, .interiorid = 6);
cp_Shop = CreateDynamicCP(-104.1407,-22.6708,1000.7188, 3.0, .interiorid = 3);
return 1;
}
CMD:robbank(playerid, params[])
{
if(robpossible == 1)
{
if ( !IsPlayerInDynamicCP( playerid,cp_GymSeven ) )
{
robpossible = 0;
SetTimer("waittimer", 30000, false);
SetTimer("robtimer", 240000, false);
SendClientMessage(playerid, COLOR_WHITE, "You gotta stay 30 sec in the bank in order to rob it!");
}
} else {
SendClientMessage(playerid, COLOR_WHITE, "You can't rob the bank right now!");
}
return 1;
}
public robtimer(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 4.0, -104.1407,-22.6708,1000.7188))
{
SendClientMessage(playerid, -1, "You failed to rob the bank!");
return 1;
}
new string[128];
new cash = random(200000);
GivePlayerMoney(playerid, cash);
format(string, sizeof(string), "You have successfully robbed $%d from the bank!", cash);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
public waittimer()
{
robpossible = 1;
SendClientMessageToAll(COLOR_WHITE, "The bank is now available for robbery!");
}
// new cp_Shop
// cp_Shop = CreateDynamicCP(-104.1407,-22.6708,1000.7188, 3.0, .interiorid = 3);