SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 22/03/2012, 07:27 PM   #1
jaami
Huge Clucker
 
jaami's Avatar
 
Join Date: Oct 2010
Location: Gaming
Posts: 250
Reputation: 13
Question Making Time in LosSantos Bug.

Well i use pconnecttime to make it score in tab. But when the player relog it reset to 0. I delete the lvel and respectpoint, but still happen what should i do?

: error 001: expected token: ";", but found "("

Quote:
public OnPlayerConnect(playerid)
{
LoggedTime[playerid] = 0;
new string[256];
gPlayerLogged[playerid] = 0;
gAdminLogged[playerid] = 0;
new plname[MAX_PLAYER_NAME],tmpvar;
GetPlayerName(playerid, plname, sizeof(plname));
if(!NameIsRP(plname))
{
SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: Your name is not acceptable.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Hint: your name must be in the format Firstname_Lastname.");
Kick(playerid); //yes, use Kick here because theres no data to save
return 1;
}
if(IsIPBanned(playerid)) {
if((BanInfo[tmpvar][BanInfoTS]-GetUnixTime())!=0) {
SendClientMessage(playerid,COLOR_YELLOW2,"You are currently banned. Please wait for this to expire");
SendClientMessage(playerid,COLOR_LIGHTRED,"If you feel this is a mistake post a appeal on the forums");
tmpvar=PlayerInfo[playerid][pRank]; //just a reused variable
new numdays=(BanInfo[tmpvar][BanInfoTS]-GetUnixTime())/86400;
format(string,sizeof(string),"Your ban expires in %i day(s). Ban Reason: %s",numdays,BanInfo[tmpvar][BanInfoReason]);//just reused variables
SendClientMessage(playerid,COLOR_LIGHTRED,string);
Kick(playerid); //don't ban because if it expires they will be banned..
}
}
PlayerInfo[playerid][pCalledTutSay]=0;//this must be outside initplayer
InitPlayer(playerid);
SetPlayerColor(playerid,COLOR_GRAD2);
foreach (Player, i)
{
if(BlockPMPerson[playerid][i] == 1)
{
BlockPMPerson[playerid][i] = 0;
}
}

new icons = 0;

for(new h = 0; h < sizeof(IntInfo); h++)
{
if(IntInfo[h][iIcon] != 0)
{
SetPlayerMapIcon(playerid, icons, IntInfo[h][iEntrancex], IntInfo[h][iEntrancey], IntInfo[h][iEntrancez], IntInfo[h][iIconT], COLOR_YELLOW);
icons++;
}
}

SetPlayerMapIcon(playerid, icons, 1641.5096,-2241.4404,13.4949, 38, COLOR_YELLOW); // Spawn Point
icons++;
SetPlayerMapIcon(playerid, icons, 978.6165,-1255.9263,16.9510, 27, COLOR_YELLOW); // Modshop
icons++;
SetPlayerMapIcon(playerid, icons, 1041.3632,-1028.2789,32.1016, 27, COLOR_YELLOW); // Modshop
icons++;
SetPlayerMapIcon(playerid, icons, 2645.3433,-2038.6853,13.5500, 27, COLOR_YELLOW); // Modshop
icons++;
// SetPlayerMapIcon(playerid, icons, 1573.5973,-2351.7605,13.5547, 55, COLOR_YELLOW); // Portcar
// icons++;

new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "users/%s.ini", sendername);
new File: hFile = fopen(string, io_read);

if (hFile)
{
gPlayerAccount[playerid] = 1;
SetPlayerScore(playerid)(pConnectTime); ((THis is the Line ERROR))
fclose(hFile);
}
else
{
gPlayerAccount[playerid] = 0;
}

return 1;
}
jaami is offline   Reply With Quote
Old 22/03/2012, 07:51 PM   #2
Jack.7331
Big Clucker
 
Join Date: Mar 2012
Posts: 161
Reputation: 3
Default Re: Making Time in LosSantos Bug.

What line is the error on? It means that the line before needs to end with a ;, or the current line needs to end with an ;
Jack.7331 is offline   Reply With Quote
Old 23/03/2012, 03:36 AM   #3
MaximumGaming
Big Clucker
 
MaximumGaming's Avatar
 
Join Date: Mar 2012
Posts: 56
Reputation: 14
Default Re: Making Time in LosSantos Bug.

what line do you get the error on?
__________________
My Mapping/Filterscripts:


Code:
Filterscripts: Cop Flare System               Mappings:
Click the And REP Me! Only If I was helpful or I helped you!

Join Maximum Gaming Roleplay
[ Refunding/VIP ] [ Hiring Scripters! Paying Them To! ]
SERVER IP: 108.170.17.54:7787
MaximumGaming is offline   Reply With Quote
Old 23/03/2012, 03:49 AM   #4
jaami
Huge Clucker
 
jaami's Avatar
 
Join Date: Oct 2010
Location: Gaming
Posts: 250
Reputation: 13
Default Re: Making Time in LosSantos Bug.

Quote:
gPlayerAccount[playerid] = 1;
SetPlayerScore(playerid)(pConnectTime); ((THis is the Line ERROR))
fclose(hFile);
I dont know whats the problem.
jaami is offline   Reply With Quote
Old 23/03/2012, 04:15 AM   #5
MaximumGaming
Big Clucker
 
MaximumGaming's Avatar
 
Join Date: Mar 2012
Posts: 56
Reputation: 14
Default Re: Making Time in LosSantos Bug.

Hmmm Not sure what to help you with here!
__________________
My Mapping/Filterscripts:


Code:
Filterscripts: Cop Flare System               Mappings:
Click the And REP Me! Only If I was helpful or I helped you!

Join Maximum Gaming Roleplay
[ Refunding/VIP ] [ Hiring Scripters! Paying Them To! ]
SERVER IP: 108.170.17.54:7787
MaximumGaming is offline   Reply With Quote
Old 23/03/2012, 04:18 AM   #6
jaami
Huge Clucker
 
jaami's Avatar
 
Join Date: Oct 2010
Location: Gaming
Posts: 250
Reputation: 13
Default Re: Making Time in LosSantos Bug.

I dont seem to see any errors with it. nothing is wrong but why still i get this error. been trying to fix it almost 5 hours.
jaami is offline   Reply With Quote
Old 23/03/2012, 06:00 AM   #7
jaami
Huge Clucker
 
jaami's Avatar
 
Join Date: Oct 2010
Location: Gaming
Posts: 250
Reputation: 13
Default Re: Making Time in LosSantos Bug.

Nevermind i fix the script by myself -.-
jaami is offline   Reply With Quote
Old 23/03/2012, 06:04 AM   #8
MaximumGaming
Big Clucker
 
MaximumGaming's Avatar
 
Join Date: Mar 2012
Posts: 56
Reputation: 14
Default Re: Making Time in LosSantos Bug.

Good Job! Heads up to you
__________________
My Mapping/Filterscripts:


Code:
Filterscripts: Cop Flare System               Mappings:
Click the And REP Me! Only If I was helpful or I helped you!

Join Maximum Gaming Roleplay
[ Refunding/VIP ] [ Hiring Scripters! Paying Them To! ]
SERVER IP: 108.170.17.54:7787
MaximumGaming is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Making Money from the Internet a Waste of Time? xSaint Everything and Nothing 12 07/04/2011 02:43 AM
Making a server time? DarrenReeder Help Archive 0 27/09/2010 04:09 PM
[Help] Me making server /time Mowgli Help Archive 8 18/11/2009 06:19 PM
Making a number into a Time zallomallo Help Archive 3 23/06/2009 10:56 AM
setting a time limit and making a score. Drift_04 Help Archive 1 25/02/2009 05:26 AM


All times are GMT. The time now is 02:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.