[Help]CMD
#1

Hello Guys
D:
My CMD Only Working in it The Seven But SexShop i Cant Robing
its tell me u are not in Seven Checkpoints im in SexShop
How To Fix
See Code And Photo Message
Help Me +Rep
PHP код:
CMD:robstoreplayeridparams[ ] )
{
    if(
Fuck)
    {
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing SexShop" );
        if ( !
IsPlayerInDynamicCPplayerid,cp_SexShop ) )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You must be in the checkpoint at SexShop to use this command!" );
        if ( 
SexShopRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} SexShop has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint! SexShop" );
        
pRobbingPplayerid ] = true;
        
SevenRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at SexShop!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint SexShop!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +5);
    }
    else
    {
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing Seven" );
        if ( !
IsPlayerInDynamicCPplayerid,cp_Seven ) )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You must be in the checkpoint at Seven to use this command!" );
        if ( 
SevenRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} Seven has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint Seven!" );
        
pRobbingPplayerid ] = true;
        
SevenRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at Seven!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint Seven!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +5);
    }
    return 
1;

see photo

Reply
#2

How To Work 2 Robing in 1 CMD ?
i Made it With Else But u see My Problems
Reply
#3

i think this the problems in my cmd
what its this ?
Quote:

if(Fuck)
{

its in Frist CMD
And only there This Write in Top
Quote:

new Fuck;

i Delete it i Get Much Error
Quote:

D:\da\filterscripts\tryrobs.pwn(73) : warning 219: local variable "szStr" shadows a variable at a preceding level
D:\da\filterscripts\tryrobs.pwn(74) : warning 219: local variable "usrName" shadows a variable at a preceding level
D:\da\filterscripts\tryrobs.pwn(82) : warning 209: function "cmd_robstore" should return a value
D:\da\filterscripts\tryrobs.pwn(83) : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(85) : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(86) : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(8 : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(89) : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(91) : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(92) : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(94) : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(96) : error 021: symbol already defined: "SendClientMessage"
D:\da\filterscripts\tryrobs.pwn(9 : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(105) : error 021: symbol already defined: "GetPlayerName"
D:\da\filterscripts\tryrobs.pwn(109) : error 021: symbol already defined: "GameTextForPlayer"
D:\da\filterscripts\tryrobs.pwn(112) : error 010: invalid function or declaration
D:\da\filterscripts\tryrobs.pwn(124) : warning 219: local variable "szStr" shadows a variable at a preceding level
D:\da\filterscripts\tryrobs.pwn(126) : warning 219: local variable "usrName" shadows a variable at a preceding level
D:\da\filterscripts\tryrobs.pwn(153) : warning 219: local variable "szStr" shadows a variable at a preceding level
D:\da\filterscripts\tryrobs.pwn(155) : warning 219: local variable "usrName" shadows a variable at a preceding level
D:\da\filterscripts\tryrobs.pwn(182) : warning 204: symbol is assigned a value that is never used: "SevenRobbed"
D:\da\filterscripts\tryrobs.pwn(182 -- 185) : warning 203: symbol is never used: "szStr"
D:\da\filterscripts\tryrobs.pwn(182 -- 185) : warning 203: symbol is never used: "usrName"

why ? and what its do
Quote:

if(Fuck)
{


this my Full Code robing please any one help me please this sucks problem i have it
PHP код:
#include <a_samp>
#include <Streamer>
#include <zcmd>
#define RED -1
#define ROB -1
#define INFO -1
forward robSevenplayerid ); //Add this to the top of your script under your includes!
forward robSexShopplayerid ); //Add this to the top of your script under your includes!
new Fuck;
//IDLEWOOD PIZZA
new
        
robTimerPMAX_PLAYERS ],
        
cp_Seven,
        
cp_SexShop,
        
boolpRobbingPMAX_PLAYERS ],
        
boolSevenRobbed;
        new 
bool:SexShopRobbed;
        
        
public 
OnGameModeInit()
{
    
cp_Seven CreateDynamicCP(-23.4826,-55.6319,1003.54693.0, .interiorid 6);
    
cp_SexShop CreateDynamicCP(-104.1407,-22.6708,1000.71883.0, .interiorid 3);
    return 
1;
}
public 
OnPlayerEnterDynamicCPplayeridcheckpointid )
{
    if( 
pRobbingPplayerid ] )
    {
            if ( 
checkpointid == cp_Seven )
            {
                
pRobbingPplayerid ] = false;
                
KillTimerrobTimerPplayerid ] );
                
SevenRobbed false;
                
GameTextForPlayerplayerid"~r~You have failed the robbery!"1000);
            }
    }
    if( 
pRobbingPplayerid ] )
    {
            if ( 
checkpointid == cp_SexShop )
            {
                
pRobbingPplayerid ] = false;
                
KillTimerrobTimerPplayerid ] );
                
SevenRobbed false;
                
GameTextForPlayerplayerid"~r~You have failed the robbery!"1000);
            }
    }
    return 
true;
}
CMD:robstoreplayeridparams[ ] )
{
    if(
Fuck)
    {
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing SexShop" );
        if ( !
IsPlayerInDynamicCPplayerid,cp_SexShop ) )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You must be in the checkpoint at SexShop to use this command!" );
        if ( 
SexShopRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} SexShop has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint! SexShop" );
        
pRobbingPplayerid ] = true;
        
SevenRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at SexShop!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint SexShop!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +5);
    }
    else
    {
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing Seven" );
        if ( !
IsPlayerInDynamicCPplayerid,cp_Seven ) )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You must be in the checkpoint at Seven to use this command!" );
        if ( 
SevenRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} Seven has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint Seven!" );
        
pRobbingPplayerid ] = true;
        
SevenRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at Seven!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint Seven!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +5);
    }
    return 
1;
}
public 
robSevenplayerid )
{
        new
            
randMoney random96000 );
        
GivePlayerMoneyplayeridrandMoney );
        new
            
szStr128 ],
            
szStr1[128],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has robbed $%d from Idlewood Pizza!"usrNamerandMoney );
        
SendClientMessageToAllROBszStr );
        
formatszStr128"[ROBBERY INFO] Robbery succesfull! You have earned $%d and 1 score from the robbery."randMoney );
        
SendClientMessageplayeridINFOszStr );
        
pRobbingPplayerid ] = false;
        
SetTimer"pizzaDelay"90000false );
        
format(szStr1sizeof (szStr1), "~g~You have succesfuly robbed $%d from Idlewood Pizza!"randMoney);
        
GameTextForPlayerplayeridszStr13000);
        
SetPlayerScore(playeridGetPlayerScore(playerid) +);
        
}
public 
robSexShopplayerid )
{
        new
            
randMoney random96000 );
        
GivePlayerMoneyplayeridrandMoney );
        new
            
szStr128 ],
            
szStr1[128],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has robbed $%d from Idlewood Pizza!"usrNamerandMoney );
        
SendClientMessageToAllROBszStr );
        
formatszStr128"[ROBBERY INFO] Robbery succesfull! You have earned $%d and 1 score from the robbery."randMoney );
        
SendClientMessageplayeridINFOszStr );
        
pRobbingPplayerid ] = false;
        
SetTimer"pizzaDelay"90000false );
        
format(szStr1sizeof (szStr1), "~g~You have succesfuly robbed $%d from Idlewood Pizza!"randMoney);
        
GameTextForPlayerplayeridszStr13000);
        
SetPlayerScore(playeridGetPlayerScore(playerid) +);
}
forward SexShopDelay( );
public 
SexShopDelay( )
{
    
SevenRobbed false;
    return 
true;
}
forward SevenDelay( );
public 
SevenDelay( )
{
    
SevenRobbed false;
    return 
true;

Reply
#4

why no one helped me
Reply
#5

Any One Help Me Please ?
Reply
#6

Help please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)