Error - Im not understanding why?
#1

Quote:

C:\Users\test.pwn(10617) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Quote:

Line 10617:
public OnPlayerRegister(playerid, password[]
{
if(IsPlayerConnected(playerid))
{
MySQLCheckConnection();
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
new newaccountsqlid = MySQLCreateAccount(playername3, password);
if (newaccountsqlid != 0)
{


Why am i getting an error?
Reply
#2

The error says this: He wants to see a ) but sees a {.

So go to the line and replace { with )
Reply
#3

Quote:
Originally Posted by Lynx.
Quote:

C:\Users\test.pwn(10617) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Quote:

Line 10617:
public OnPlayerRegister(playerid, password[]
{
if(IsPlayerConnected(playerid))
{
MySQLCheckConnection();
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
new newaccountsqlid = MySQLCreateAccount(playername3, password);
if (newaccountsqlid != 0)
{


Why am i getting an error?
Код:
public OnPlayerRegister(playerid, password[])
{
	if(IsPlayerConnected(playerid))
	{
		MySQLCheckConnection();
		new playername3[MAX_PLAYER_NAME];
		GetPlayerName(playerid, playername3, sizeof(playername3));
		new newaccountsqlid = MySQLCreateAccount(playername3, password);
		if (newaccountsqlid != 0)
You forgot a ) after password[].
Reply
#4

Ahhh Thanks.
Reply
#5

Ahhh Thanks.
Reply
#6

Double post?
Reply
#7

Quote:
Originally Posted by Rk_
Double post?
It was a mistake, if i knew how to delete it, i would.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)