SA-MP Forums Archive
[FilterScript] [FS] Simple base License System (Download Link Added) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Simple base License System (Download Link Added) (/showthread.php?tid=74965)

Pages: 1 2


Re: [FS] Simple base License System (Download Link Added) - juuleman - 08.03.2010

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.


Re: [FS] Simple base License System (Download Link Added) - Oxside - 08.03.2010

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


Re: [FS] Simple base License System (Download Link Added) - Janek17 - 13.10.2010

nice work


Re: [FS] Simple base License System (Download Link Added) - Scenario - 13.10.2010

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


Re: [FS] Simple base License System (Download Link Added) - dutu1995 - 02.11.2011

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?


Re: [FS] Simple base License System (Download Link Added) - taira - 02.11.2011

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 !


Re: [FS] Simple base License System (Download Link Added) - [LaTinb0y]...$ag3R - 02.11.2011

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


Re: [FS] Simple base License System - justsomeguy - 02.11.2011

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


Re: [FS] Simple base License System (Download Link Added) - [LaTinb0y]...$ag3R - 03.11.2011

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


Re: [FS] Simple base License System (Download Link Added) - Lookin - 03.11.2011

wow this was released a long time ago


Re: [FS] Simple base License System (Download Link Added) - Astralis - 19.11.2011

its good job. keep it up dude