Pawno Problem
#21

B
U
M
P
Reply
#22

update dudb and the rest of the includes.
Reply
#23

Quote:
Originally Posted by Xtreme_playa
View Post
update dudb and the rest of the includes.
update?
Reply
#24

Quote:
Originally Posted by Vasu99
View Post
update?
yeah replace the old includes with the new ones.
Reply
#25

Quote:
Originally Posted by Xtreme_playa
View Post
yeah replace the old includes with the new ones.
Ok O.o
Reply
#26

Quote:
Originally Posted by Vasu99
View Post
Ok O.o
Stevo's CNR does not have any errors or warnings on compilation. How come you got those ?
Reply
#27

To start you off, things such as:
pawn Code:
dUserSetINT(PlayerName(playerid)).("RegularPlayer",IsRegularPlayer[playerid]);
and
pawn Code:
if(!udb_Exists(PlayerName(playerid)))
Should replace
pawn Code:
PlayerName
with
pawn Code:
PlayerName2
Should look something like this:
pawn Code:
if(!udb_Exists(PlayerName2(playerid)))
etc.

This should be your OnPlayerConnect, minus any other code that was not posted.
pawn Code:
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;
}
Reply
#28

Quote:
Originally Posted by AWP Gaming
View Post
To start you off, things such as:
pawn Code:
dUserSetINT(PlayerName(playerid)).("RegularPlayer",IsRegularPlayer[playerid]);
and
pawn Code:
if(!udb_Exists(PlayerName(playerid)))
Should replace
pawn Code:
PlayerName
with
pawn Code:
PlayerName2
Should look something like this:
pawn Code:
if(!udb_Exists(PlayerName2(playerid)))
etc.

This should be your OnPlayerConnect, minus any other code that was not posted.
pawn Code:
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;
}
Please explain better, I do not understand x.x. You just listed up a bunch of pawno codes ?
Reply
#29

Change all the PlayerName values to PlayerName2
For example:
pawn Code:
if (!udb_Exists(PlayerName(playerid)))
Should be:
pawn Code:
if (!udb_Exists(PlayerName2(playerid)))
Reply
#30

Quote:
Originally Posted by AWP Gaming
View Post
Change all the PlayerName values to PlayerName2
For example:
pawn Code:
if (!udb_Exists(PlayerName(playerid)))
Should be:
pawn Code:
if (!udb_Exists(PlayerName2(playerid)))
ALL PlayerName's!?
Reply
#31

Quote:
Originally Posted by arathin
View Post
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.
Nop, Im gonna try until I succeed . Maybe you can solve this one? Its a new error
pawn Code:
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.
Reply
#32

help
Reply
#33

bump
Reply


Forum Jump:


Users browsing this thread: 12 Guest(s)