Regiter Dialogs - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Regiter Dialogs (
/showthread.php?tid=160163)
Regiter Dialogs -
robert4049 - 15.07.2010
Okay the following Excerpt is from lines 1313 to 1330 in my gm
Код:
KickPlayer(playerid, 0, "System","Repeated attempts to spawn without logging in.");
return 1;
}
SendClientMessage(playerid,COLOR_RED,"[INFO:] You must login before you can spawn!");
SpawnAttempts[playerid] ++;
return 0;
}
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Variable_Name);
//==================[Join Counter]=========================
JoinCounter = JoinCounter + 1;
dini_IntSet("CRP_Scriptfiles/Other/JoinCounter.cfg", "Connections", JoinCounter);
//=========================================================
dcmd_register(playerid,params,1[])
the following excerpt is from lines 1263 to 1272.
Код:
if (realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour);
}
the following is an except from 179 to 199
Код:
forward FixHour(hour);
forward SyncTime();
forward UpdateData();
forward SaveAccounts();
forward Update();
forward PayDay();
forward UpdateMoney();
forward ResetStats(playerid);
forward SaveDynamicCars();
forward LoadDynamicCars();
forward LoadDynamicFactions();
forward SaveDynamicFactions();
forward LoadCivilianSpawn();
forward SaveCivilianSpawn();
forward LoadBuildings();
forward SaveBuildings();
forward split(const strsrc[], strdest[][], delimiter);
forward ShowStats(playerid,targetid);
forward BanPlayer(playerid,bannedby[MAX_PLAYER_NAME],reason[]);
forward BanPlayerAccount(playerid,bannedby[MAX_PLAYER_NAME],reason[]);
forward KickPlayer(playerid,kickedby[MAX_PLAYER_NAME],reason[]);
and the error code
Код:
C:\Users\Robert\Desktop\SA-MP\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Robert\Desktop\SKRP.pwn(179) : error 010: invalid function or declaration
C:\Users\Robert\Desktop\SKRP.pwn(199) : error 010: invalid function or declaration
C:\Users\Robert\Desktop\SKRP.pwn(1269) : warning 215: expression has no effect
C:\Users\Robert\Desktop\SKRP.pwn(1313) : warning 215: expression has no effect
C:\Users\Robert\Desktop\SKRP.pwn(1330) : error 029: invalid expression, assumed zero
C:\Users\Robert\Desktop\SKRP.pwn(1330) : error 029: invalid expression, assumed zero
C:\Users\Robert\Desktop\SKRP.pwn(1330) : error 029: invalid expression, assumed zero
C:\Users\Robert\Desktop\SKRP.pwn(1330) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Re: Regiter Dialogs -
bartje01 - 15.07.2010
Your first error. string might be defined more times
It should be Kick(playerid);
not Kickplayer
Re: Regiter Dialogs -
robert4049 - 15.07.2010
still getting the same error for that
Re: Regiter Dialogs - [L3th4l] - 16.07.2010
@bartje01, KickPlayer is a function from the script robet is using(which is Carlito's RP (if im correct)),
This :
pawn Код:
dcmd_register(playerid,params,1[])
Is not supposed to be under OnPlayerConnect, Put it Under OnPlayerCommandText