01.03.2012, 09:05
B
U
M
P
U
M
P
dUserSetINT(PlayerName(playerid)).("RegularPlayer",IsRegularPlayer[playerid]);
if(!udb_Exists(PlayerName(playerid)))
PlayerName
PlayerName2
if(!udb_Exists(PlayerName2(playerid)))
public OnPlayerConnect(playerid)
{
if (!udb_Exists(PlayerName2(playerid)))
{
SendClientMessage(playerid,COLOR_ERROR,"This player name has already been registered. Please login before you spawn.");
ShowLoginScreen(playerid); }
else if(udb_Exists(PlayerName2(playerid))) {
SendClientMessage(playerid,COLOR_ERROR,"This player name has not been registered. You must register before playing on BCCAR.");
ShowRegisterScreen(playerid);
}
for(new i = 0; i < sizeof(Objects); i++) {
Player[playerid][view][i] = false; }
return 1;
}
To start you off, things such as:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
This should be your OnPlayerConnect, minus any other code that was not posted. pawn Code:
|
if (!udb_Exists(PlayerName(playerid)))
if (!udb_Exists(PlayerName2(playerid)))
So far no one has been able to fix this issue my advice would be to start a new one sadly and this time back it up ever so often. Sorry I wish I had better news but I only know so much about pawno and everything Ive tried hasn't fixed this issue.
|
C:\Users\Gandhi\Desktop\CnR\pawno\include\dutils.inc(31) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\dutils.inc(135) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\dutils.inc(175) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\dutils.inc(283) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\dutils.inc(340) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\dutils.inc(382) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\sscanf2.inc(218) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\sscanf2.inc(218) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\sscanf2.inc(278) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\sscanf2.inc(278) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\lfuncs.inc(560) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\lfuncs.inc(626) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\lfuncs.inc(681) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\pawno\include\lfuncs.inc(810) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(960) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(968) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(1468) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2793) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2794) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2892) : error 017: undefined symbol "ShowLoginScreen"
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2893) : error 029: invalid expression, assumed zero
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2893 -- 2894) : warning 215: expression has no effect
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2894) : error 001: expected token: ";", but found "if"
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2897) : error 017: undefined symbol "ShowRegisterScreen"
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2904) : error 055: start of function body without function header
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2912) : warning 209: function "SSCANF_OnPlayerDisconnect" should return a value
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2912) : error 010: invalid function or declaration
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2915) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2919) : error 054: unmatched closing brace ("}")
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2921) : error 021: symbol already defined: "pname"
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2925) : error 010: invalid function or declaration
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2928) : error 010: invalid function or declaration
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2930) : error 021: symbol already defined: "udb_UserSetInt"
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2930) : error 017: undefined symbol "playerid"
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2930) : error 021: symbol already defined: "udb_UserSetInt"
C:\Users\Gandhi\Desktop\CnR\gamemodes\SFCRRPG.pwn(2930 -- 2931) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
15 Errors.