[FilterScript] [FS] Simple base License System (Download Link Added)
#21

Fixed the errors but i got a problem...

If i enter a car it says the You Dont Have A Driving License Message already before im even in the car and it wont exit me...

Please help.
Reply
#22

You need to make a simple /exit command.
Add following code:

Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
	{
		RemovePlayerFromVehicle(playerid);
		return 1;
	}
You can also make this work with a key so when you press CTRL or something you exit
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply
#23

nice work
Reply
#24

This was released a long time ago, so it's probably outdated. It's cool though, I'd like to see a new update!
Reply
#25

pawn Код:
#include <a_samp>
#include <dudb>
#include <Dini>
#include <dutils>

new PlayerName[MAX_PLAYER_NAME];
pawn Код:
public OnPlayerConnect(playerid)
{
    new formatZ[256];
        new pName[MAX_PLAYER_NAME];
    new string[48];

    format(formatZ,sizeof(formatZ),"%s.txt",PlayerName(playerid)); //This is line 54
    if(!udb_Exists(formatZ))
    {
        udb_Create(formatZ,"209010");
    }
    License[playerid] = dUserINT(formatZ).("License");
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    new formatZ2[256];
    new p[MAX_PLAYER_NAME];
        new string[56];
        format(formatZ2,sizeof(formatZ2),"%s.txt",PlayerName(playerid));
    dUserSetINT(formatZ2).("License",License[playerid]);
    return 1;
}
pawn Код:
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : warning 215: expression has no effect
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : fatal error 107: too many error messages on one line
How can I fix this errors? Please can you help me?
Reply
#26

Quote:
Originally Posted by dutu1995
Посмотреть сообщение
pawn Код:
#include <a_samp>
#include <dudb>
#include <Dini>
#include <dutils>

new PlayerName[MAX_PLAYER_NAME];
pawn Код:
public OnPlayerConnect(playerid)
{
    new formatZ[256];
        new pName[MAX_PLAYER_NAME];
    new string[48];

    format(formatZ,sizeof(formatZ),"%s.txt",PlayerName(playerid)); //This is line 54
    if(!udb_Exists(formatZ))
    {
        udb_Create(formatZ,"209010");
    }
    License[playerid] = dUserINT(formatZ).("License");
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    new formatZ2[256];
    new p[MAX_PLAYER_NAME];
        new string[56];
        format(formatZ2,sizeof(formatZ2),"%s.txt",PlayerName(playerid));
    dUserSetINT(formatZ2).("License",License[playerid]);
    return 1;
}
pawn Код:
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : warning 215: expression has no effect
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Eduarth\Desktop\pp.pwn(54) : fatal error 107: too many error messages on one line
How can I fix this errors? Please can you help me?
simple....RE-install this all script !
Reply
#27

Quote:
Originally Posted by taira
Посмотреть сообщение
simple....RE-install this all script !
thanks TAIRA....your help work 2 me as well !
Reply
#28

Quote:
Originally Posted by [M]ohammed
Посмотреть сообщение
υљєℓєљљ - тнєяєљ ησ ∂σωηℓσα∂ ℓιηк, ρυт ∂α ∂σωηℓσα∂ ℓιηк љσ ωє ўαη љαу тнαт тнιљ αιηт υљєℓєљљ - ву тнє ωαу. ησ υљє ѓσя ρυттιηg ιηўℓυ∂єљ σηℓу!
[м]σнαммє∂!
Talk english!
Reply
#29

any way nice work.......and exellant job...i like it toooooooooooo much !
Reply
#30

wow this was released a long time ago
Reply
#31

its good job. keep it up dude
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)