SA-MP Forums Archive
[Help]Gamemode - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]Gamemode (/showthread.php?tid=306962)



[Help]Gamemode - kdlife - 28.12.2011

Can help me somebody with this errors?

fRP_core.pwn(204) : error 017: undefined symbol "OnDuty"
fRP_core.pwn(216) : error 017: undefined symbol "pLeader"
fRP_core.pwn(21 : error 017: undefined symbol "FactionSkin"
fRP_core.pwn(220) : error 017: undefined symbol "pLeader"
fRP_core.pwn(222) : error 017: undefined symbol "FactionSkin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.


And this is the lines from 204 to 222.
if(Pi[OnDuty] == 0)
{
if(Pi[Spawn])
{
Send:2(playerid,"LS nu este disponibil");
SetSpawnInfo(playerid,0,Pi[skin],X,Y,Z,0,0,0,0,0,0,0);
}else
{
SetSpawnInfo(playerid,0,Pi[skin],X,Y,Z,0,0,0,0,0,0,0);
}
}else
{
if(Pi[pLeader] == 1 && Pi[pMember] == 1)
{
SetSpawnInfo(playerid,0,Pi[FactionSkin],2340.6997,2456.0303,14.9688,0,0,0,0,0,0,0);
}
if(Pi[pLeader] == 0 && Pi[pMember] == 0)
{
SetSpawnInfo(playerid,0,Pi[FactionSkin], 2345.6997,2456.0303,84.9688,0,0,0,0,0,0,0);



Re : [Help]Gamemode - Dziugsas - 28.12.2011

On your player enum add these :

OnDuty,
pLeader,
FactionSkin,


Re: Re : [Help]Gamemode - kdlife - 28.12.2011

Quote:
Originally Posted by Dziugsas
Посмотреть сообщение
On your player enum add these :

OnDuty,
pLeader,
FactionSkin,
Where exactly?


Re : [Help]Gamemode - Dziugsas - 28.12.2011

Your player info enum. example :

Код:
enum item
{
blablabla,
admin,
job,
skin,
}
new pInfo[MAX_PLAYERS][item];



Re: [Help]Gamemode - kdlife - 28.12.2011

Thanks bro you are the best

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

No errors

Now i have other problem i dont know to rewrite some my sql codes can i post them?


Re : [Help]Gamemode - Dziugsas - 28.12.2011

i'm not good at sql and mysql.Sorry bro.


Re: Re : [Help]Gamemode - kdlife - 28.12.2011

Quote:
Originally Posted by Dziugsas
Посмотреть сообщение
i'm not good at sql and mysql.Sorry bro.
It's easy bro...but for me it's hard couz i am newbie


/*
Mysql:Tables

users: id,Name,Password,Mail,Level,AdminLevel,Spawn,reg_d ate,last_on,Money,kills,deaths,....
CREATE TABLE `users`( id INT auto_increment PRIMARY KEY,Name varchar(50),Password varchar(50), ip varchar(50),Mail varchar(50) DEFAULT 'Undefined!',Level INT DEFAULT '0',AdminLevel INT DEFAULT '0', Spawn INT DEFAULT '0',
reg_date varchar(50) DEFAULT 'NaN',last_on varchar(50) DEFAULT 'NaN',Money INT DEFAULT '0',kills INT DEFAULT '0', deaths INT DEFAULT '0',
onlinetime varchar(100) DEFAULT '0 days 0 hours 0 minutes 0 seconds',skin INT DEFAULT '0',);

info: id,name,referers
CREATE TABLE `info` ( id INT auto_increment PRIMARY KEY,Name varchar(50),referers INT DEFAULT '0',regiune varchar(50) DEFAULT 'Unknown',DataDenastere varchar(50) DEFAULT 'unknown',NumeReal varchar(50) DEFAULT 'unknown',Profesie varchar(50) DEFAULT 'unknown',Sex varchar(50) DEFAULT 'unknown'
);

Kicks: id,player,time,reason
CREATE TABLE `kicks` (id INT auto_increment PRIMARY KEY,player varchar(50),time varchar(50),reason varchar(50))

tempbans:name, ip, reason, banlength, bannedby,when,expire
CREATE TABLE `tempbans` (id INT auto_increment PRIMARY KEY, name varchar(50), ip varchar(50), reason varchar(50), banlength varchar(50), bannedby varchar(50),cand varchar(50),expire varchar(50) );

bans: id , name, ip, reason, bannedby, date;
CREATE TABLE `bans` (id INT auto_increment PRIMARY KEY, name varchar(50), ip varchar(50), reason varchar(50), bannedby varchar(50),date varchar(50) );

PersonalCars id,model,color1,color2,price,owner,posx,posy,posz, posa,plate,parked,paintj,components)
CREATE TABLE `personalcars` (id INT auto_increment PRIMARY KEY,Model INT,Color1 INT,Color2 INT,Price INT,Owner varchar(50),PosX float,PosY float,PosZ float,PosA float,Plate varchar(50),Parked int,PaintJ INT,Components varchar(50),Repayed INT)

Log
CREATE TABLE `log`(id INT auto_increment PRIMARY KEY,_type varchar(50),_date varchar(50),info varchar(100));

Houses:
CREATE TABLE `houses`(id INT auto_increment PRIMARY KEY,Owner varchar(50),Name varchar(50),Locked INT,Price INT,NoParks INT,PickUpX FLOAT,PickUpY FLOAT,PickUpZ FLOAT,
interior INT,
Park1X FLOAT,Park1Y FLOAT,Park1Z FLOAT,Park1A FLOAT,Park2X FLOAT,Park2Y FLOAT,Park2Z FLOAT,Park2A FLOAT,Park3X FLOAT,Park3Y FLOAT,Parks3Z FLOAT,Park3A FLOAT);

*/