include issue
#5

In gamemode:

PHP код:
#include <a_samp>                        
#include <sscanf2>
#include <strlib>                        
#include <YSI\y_hooks>                
#include <a_mysql>                        
#include <Pawn.RakNet>                                    
#include <Pawn.CMD>                        
#include <SHA256>                        
#include <DialogCenter>    
#include <geolocation>                    
#include <YSI\y_iterate>                
#include "includes/main/definitions.pwn"
#include "includes/main/globalVars.pwn"
#include "includes/main/enums.pwn"
#include "includes/main/timers.pwn"
#include "includes/main/customFuncs.pwn"
#include "includes/main/dbConnection.pwn"
#include "includes/users/--.pwn"
#include "includes/users/--.pwn"
#include "includes/users/--.pwn"
#include "includes/users/--.pwn"
#include "includes/users/--.pwn"
#include "includes/characters/--.pwn"
#include "includes/characters/--.pwn"
#include "includes/characters/--.pwn"
#include "cmdHandler.pwn" // <-- there are cmds that are includes 
cmdHandler.pwn
PHP код:
forward OnPlayerCommandReceived(playeridcmd[], params[], flags);
public 
OnPlayerCommandReceived(playeridcmd[], params[], flags)
{
    if(
users[playerid][uStatus] == || characters[playerid][cStatus] == 0)
    {
        return 
0;
    }
    if(
lastCommandTime[playerid] > gettime())
    {
        return 
0;
    }
    else
    {
        
lastCommandTime[playerid] = gettime()+1;
        return 
1;
    }
}
// characters
#include "includes/characters/cmds/sv.pwn"
#include "includes/characters/cmds/s.pwn" 
s.pwn
PHP код:
CMD:s(playeridparams[])
{
    new 
text[128];
    if(
sscanf(params"s[128]"text))
    {
        return 
SendClientMessage(playerid, -1"{d9d9d9}[{00cc66}Use{d9d9d9}]: /s message");
    }
    else
    {
        
_sendLocalScream(playeridtext);
        return 
1;
    }

PHP код:
CMD:sv(playeridparams[])
{
    if(
characters[playerid][cLastSave] > gettime())
    {
        new 
message[256];
        new 
minutes = (characters[playerid][cLastSave]-gettime())/MINUTE;
        new 
seconds = (characters[playerid][cLastSave]-gettime())%MINUTE;
        
// some calculations, format
        
return SendClientMessage(playerid, -1message);
    }
    else
    {
        
characters[playerid][cLastSave] = gettime()+(MINUTE*10);
        
saveCharacterData(playerid);
        return 
SendClientMessage(playerid, -1"DEBUG EXIT");
    }

Reply


Messages In This Thread
include issue - by YenTy - 08.10.2018, 18:13
Re: include issue - by YenTy - 13.10.2018, 16:35
Re: include issue - by v1k1nG - 13.10.2018, 16:41
Re: include issue - by YenTy - 13.10.2018, 16:49
Re: include issue - by YenTy - 13.10.2018, 17:44
Re: include issue - by YenTy - 13.10.2018, 18:44
Re: include issue - by KinderClans - 13.10.2018, 19:25
Re: include issue - by YenTy - 13.10.2018, 19:50
Re: include issue - by YenTy - 15.10.2018, 14:25

Forum Jump:


Users browsing this thread: 1 Guest(s)