[HELP] Random money between 50k-100k
#1

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:
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;
}
ERROR:
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.
I have searched on Wiki and on forum, but i dont find anything.
Reply


Messages In This Thread
[HELP] Rob random money between 50k-100k - by Larsey123IsMe - 14.11.2010, 14:15
Re: [HELP] Random money between 50k-100k - by Larsey123IsMe - 14.11.2010, 21:16
Re: [HELP] Random money between 50k-100k - by willsuckformoney - 14.11.2010, 21:21
Re: [HELP] Random money between 50k-100k - by Larsey123IsMe - 14.11.2010, 21:33
Re: [HELP] Random money between 50k-100k - by Kitten - 14.11.2010, 21:40
Re: [HELP] Random money between 50k-100k - by Larsey123IsMe - 14.11.2010, 21:49
Re: [HELP] Random money between 50k-100k - by Larsey123IsMe - 15.11.2010, 00:25
Re: [HELP] Random money between 50k-100k - by mmrk - 15.11.2010, 05:15
Re: [HELP] Random money between 50k-100k - by Larsey123IsMe - 15.11.2010, 12:32
Re: [HELP] Random money between 50k-100k - by Larsey123IsMe - 15.11.2010, 13:27

Forum Jump:


Users browsing this thread: 2 Guest(s)