14.11.2010, 14:15
(
Последний раз редактировалось Larsey123IsMe; 14.11.2010 в 21:17.
)
How can i rob the SexShop random money form 50k-100k
"You have robbed 78558(random) from the sex shop" //After you have robbed, you need to wait 5 min to rob again
"The sex shop have recendly been robbed"
I came so far:
ERROR:
I have searched on Wiki and on forum, but i dont find anything.
"You have robbed 78558(random) from the sex shop" //After you have robbed, you need to wait 5 min to rob again
"The sex shop have recendly been robbed"
I came so far:
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_DARKRED 0xAA3333AA
#pragma tabsize 0;
//Checkpoints
new EnterSexShop, ExitSexShop, RobSexShop;
public OnFilterScriptInit()
{
//Checkpoints
EnterSexShop = CreatePickup(1273, 23, 2094.7260742188,2122.6782226563,9.7453060150146); //EnterSexShop
ExitSexShop = CreatePickup(1273, 23, -204.33526611328,-27.19874382019,1001.2746582031); //ExitSexShop
RobSexShop = CreatePickup(1273, 23, -204.33526611328,-27.19874382019,1001.2746582031); //ExitSexShop
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
//EnterSexShop~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if( pickupid == EnterSexShop){
SetPlayerPos(playerid,2094.7260742188,2120.6782226563,9.7453060150146);
SetPlayerInterior(playerid, 16 );
SendClientMessage(playerid,COLOR_DARKRED,"Welcome to the Sex Shop!");
}
//ExitSexShop~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if( pickupid == ExitSexShop){
SetPlayerPos(playerid,-204.33526611328,-27.19874382019,1001.2746582031);
SetPlayerInterior(playerid, 0 );
SendClientMessage(playerid,COLOR_DARKRED,"You have left the Sex Shop!");
}
//RobSexShop~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if( pickupid == RobSexShop){
SendClientMessage(playerid,COLOR_DARKRED,"/robsex to rob the Sex Shop");
GivePlayerWeapon(playerid, 4, 1); //Pink Dildo :P
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/robsex", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid, +50000);
}
return else
}
SendClientMessage(playerid,COLOR_DARKRED,"The sex shop have recendly been robbed!");
}
return 0;
}
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\LVRob.pwn(50) : error 029: invalid expression, assumed zero
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\LVRob.pwn(50) : warning 215: expression has no effect
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\LVRob.pwn(50) : error 001: expected token: ";", but found ")"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\LVRob.pwn(50) : error 029: invalid expression, assumed zero
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\LVRob.pwn(50) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.