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