SA-MP Forums Archive
Anyone can fix this for me? - 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)
+--- Thread: Anyone can fix this for me? (/showthread.php?tid=635353)

Pages: 1 2


Anyone can fix this for me? - Ivor8000 - 05.06.2017

What is happening?

Код:
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : error 001: expected token: ";", but found "-string-"
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : error 001: expected token: ";", but found ")"
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : error 029: invalid expression, assumed zero
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 12025.1689,-12880.7031,2.2219);
	SetPlayerFacingAngle(playerid, 40.0);
	SetPlayerCameraPos(playerid, 12021.9229,-12875.6885,2.2219);
	SetPlayerCameraLookAt(playerid, 12025.1689,-12880.7031,2.2219);
	return 1;
}

public OnPlayerConnect(playerid)
{	new query[126], pName[MAX_PLAYER_NAME];

	GetPlayerName(playerid, pName, sizeof(pName));

	format(query), sizeof(query)"SELECT  FROM accounts WHERE name = '%s'", pName);
	mysql_query(query);
	mysql_store_result();
	
	if(mysql_num_rows()== 1);
	{
 		SendClientMessage(playerid, -1, "That username is already in use!");
		ShowPlayerDialog(playerid, 0, DIALOG_STYLE_IMPUT, "Login", "Please enter your password to login.", "Login", "Cancel");
	}
	else
 		SendClientMessage, (playerid, -1, "That username is valid to be registered!");
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{SendClientMessage(playerid,IntColor, "45 minutes ago: [Cruise Ship Intercom] We are approaching Tikibayй, prepare your luggage and get your children from their activities!");
SendClientMessage(playerid,IntColor, "30 minutes ago: [Cruise Ship Intercom] Make sure to register yourself and your family on the island by using their website: www.tikibaye.tk!");
SendClientMessage(playerid,IntColor, "30 minutes ago: [Cruise Ship Intercom] The law enforcement can give you a ticket for being on the island for longer as a week without registration.");
SendClientMessage(playerid,IntColor, "10 minutes ago: [Cruise Ship Intercom] We have arrived at Tikibayй, enjoy your stay on the island!");
SendClientMessage(playerid,DoColor, "You have arrived on a Tropical Island called Tikibayй.");
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/kill", cmdtext, true, 10) == 0)
	{ SetPlayerHealth(playerid, 0);
		return 1;}

	return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
	return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
	return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}

public OnPlayerUpdate(playerid)
{
	return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{switch(dialogid)
	{case 0:
 		{if(response)
 		    {
		new query[124], pName[MAX_PLAYER_NAME];
 		GetPlayernName(playerid, pName, sizeof(pName));
 		format, query sizeof(query), "SELECT * FROM accounts WHERE name = '%s' AND password = '%s'", pName, inputtext);
 		mysql_query(query);
 		mysql_store_result();
 		{
 		if(mysql_num_rows() == 1)
 		SendClientMessage(playerid, -1 "You have succesfully logged in.");
 		SetSpawnInfo(playerid, 1, 299, 1, 2, 3. 1, 1, 1, 999, 1, 999);
 		SpawnPlayer(playerid);
 		}
 		else
 		{
		 SendClientMessage(playerid, -1) "Incorrect password!");
			ShowPlayerDialog(playerid, 0, DIALOG_STYLE_IMPUT, "Login", "Please enter your password to login.", "Login", "Cancel");
 		
 		}
 		case 1:
 		{
 		if (response)
 		{
			new query[126], pName[MAX_PLAYER_NAME];
			GetPlayerName(playerid, pName, sizeof(pName) );
			format (query, sizeof(query), "INSERT INTO accounts VALUES('%s', '%s')", pName, imputtext);
			mysql_query(query);

			SendCLientMessage(playerid, -1 "You have succesfully registered your account!");
			
			SetSpawnInfo(playerid, 1, 299, 1, 2, 3. 1, 1, 1, 999, 1, 999);
			SpawnPlayer(playerid);
			
 		}
	}
	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}



Re: Anyone can fix this for me? - JasonRiggs - 05.06.2017

Which one is the error line?


Re: Anyone can fix this for me? - Ivor8000 - 05.06.2017

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
Which one is the error line?
I couldn't find out either, the error used to show that..


Re: Anyone can fix this for me? - TonyII - 05.06.2017

if(mysql_num_rows()== 1);

to

if(mysql_num_rows()== 1)


Re: Anyone can fix this for me? - LetsOWN[PL] - 05.06.2017

pawn Код:
format(query), sizeof(query)"SELECT  FROM accounts WHERE name = '%s'", pName);
Missing ,
pawn Код:
format(query), sizeof(query), "SELECT  FROM accounts WHERE name = '%s'", pName);
pawn Код:
SendClientMessage(playerid, -1) "Incorrect password!");
Parenthesis instead of comma
pawn Код:
SendClientMessage(playerid, -1, "Incorrect password!");
pawn Код:
SendClientMessage, (playerid, -1, "That username is valid to be registered!");
Syntax..
pawn Код:
SendClientMessage(playerid, -1, "That username is valid to be registered!");
Dude.. Really?


Re: Anyone can fix this for me? - Ivor8000 - 05.06.2017

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
Which one is the error line?
This is line 2070 to 2090, error should be in 2077 according to the error message.
But I guess that error message isn't showing it right, all errors in 2077?
Код:
public OnPlayerConnect(playerid)
{	new query[126], pName[MAX_PLAYER_NAME];

	GetPlayerName(playerid, pName, sizeof(pName));

	format(query), sizeof(query)"SELECT  FROM accounts WHERE name = '%s'", pName);
	mysql_query(query);
	mysql_store_result();
	
	if(mysql_num_rows()== 1);
	{
 		SendClientMessage(playerid, -1, "That username is already in use!");
		ShowPlayerDialog(playerid, 0, DIALOG_STYLE_IMPUT, "Login", "Please enter your password to login.", "Login", "Cancel");



Re: Anyone can fix this for me? - JasonRiggs - 05.06.2017

"Tony" and "Let's Own" already fixed it lol


Re: Anyone can fix this for me? - Ivor8000 - 05.06.2017

To be honest, I seem to have fucked my script up lol.


Re: Anyone can fix this for me? - JasonRiggs - 05.06.2017

You need to have a high percentage of concentration while scripting man, Because such small problems will cause much errors and will make u feel disappointed and will make you feel that you don't want to script again..


Re: Anyone can fix this for me? - Ivor8000 - 05.06.2017

Exactly Jason, I have a job as trucker..
Anyways..

Код:
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : error 001: expected token: ";", but found ")"
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : error 029: invalid expression, assumed zero
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2267) : error 017: undefined symbol "GetPlayernName"
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2267) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : error 076: syntax error in the expression, or invalid function call
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : error 001: expected token: ";", but found "sizeof"
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : error 001: expected token: ";", but found ")"
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2268) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
More errors..


Re: Anyone can fix this for me? - JasonRiggs - 05.06.2017

Show me your current code of the lines which got errors and the surrounding lines around it..


Re: Anyone can fix this for me? - Ivor8000 - 05.06.2017

Syntax error?
format, query, sizeof(query), "SELECT * FROM accounts WHERE name = '%s' AND password = '%s'", pName, inputtext;


Re: Anyone can fix this for me? - JasonRiggs - 05.06.2017

Syntax Error means that you miss-used the function, format should be like that for example [code]format(string, sizeof(string), "%s", pName);, mysql_format is like that mysql_format(ConnectionHandle, output, length, format, Float);


Re: Anyone can fix this for me? - Ivor8000 - 05.06.2017

----


Re: Anyone can fix this for me? - Ivor8000 - 06.06.2017

Need this last warnings and errors to be fixed:
Code:
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(1043) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2078) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2078) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2078) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2078) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2078) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2267) : error 076: syntax error in the expression, or invalid function call
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2267) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2267) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2267) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2267) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2272 -- 2274) : error 029: invalid expression, assumed zero
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2276) : error 029: invalid expression, assumed zero
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2278 -- 2279) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2278 -- 2280) : error 029: invalid expression, assumed zero
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2282) : error 014: invalid statement; not in switch
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2282) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2286) : warning 219: local variable "query" shadows a variable at a preceding level
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2286) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2289 -- 2296) : error 029: invalid expression, assumed zero
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2301) : warning 225: unreachable code
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2301) : error 029: invalid expression, assumed zero
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2301) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayй.pwn(2305) : error 030: compound statement not closed at the end of file (started at line 2265)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Sentence: 2064-2104
Code:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 12025.1689,-12880.7031,2.2219);
	SetPlayerFacingAngle(playerid, 40.0);
	SetPlayerCameraPos(playerid, 12021.9229,-12875.6885,2.2219);
	SetPlayerCameraLookAt(playerid, 12025.1689,-12880.7031,2.2219);
	return 1;
}

public OnPlayerConnect(playerid)
{	new query[126], pName[MAX_PLAYER_NAME];

	GetPlayerName(playerid, pName, sizeof(pName));

	format(query), sizeof(query), "SELECT  FROM accounts WHERE name = '%s'", pName;
	mysql_query(query);
	mysql_store_result();
	
	if(mysql_num_rows()== 1)
	{
 		SendClientMessage(playerid, -1, "That username is already in use!");
		ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Login", "Please enter your password to login.", "Login", "Cancel");
	}
	else
 		SendClientMessage(playerid, -1, "That username is valid to be registered!");
	return 1;
}

public OnPlayerSpawn(playerid)
{SendClientMessage(playerid,IntColor, "45 minutes ago: [Cruise Ship Intercom] We are approaching Tikibayй, prepare your luggage and get your children from their activities!");
SendClientMessage(playerid,IntColor, "30 minutes ago: [Cruise Ship Intercom] Make sure to register yourself and your family on the island by using their website: www.tikibaye.tk!");
SendClientMessage(playerid,IntColor, "30 minutes ago: [Cruise Ship Intercom] The law enforcement can give you a ticket for being on the island for longer as a week without registration.");
SendClientMessage(playerid,IntColor, "10 minutes ago: [Cruise Ship Intercom] We have arrived at Tikibayй, enjoy your stay on the island!");
SendClientMessage(playerid,DoColor, "You have arrived on a Tropical Island called Tikibayй.");
	return 1;
}
Sentence 2260 - 2304
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{switch(dialogid)
	{case 0:
 		{if(response)
 		    {
		new query[124], pName[MAX_PLAYER_NAME];
 		GetPlayerName(playerid, pName, sizeof(pName));
 		format, query, sizeof(query), "SELECT * FROM accounts WHERE name = '%s' AND password = '%s'", pName, inputtext;
 		mysql_query(query);
 		mysql_store_result();
 		{
        if(mysql_num_rows()== 1)
 		SendClientMessage(playerid, -1, "You have succesfully logged in!",
 		SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999,
 		SpawnPlayer(playerid),;
 		}
 		else
 		{
		 	SendClientMessage(playerid, -1, "Incorrect password!",
			ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Login", "Please enter your password to login.", "Login", "Cancel"),
 		,
 		}
 		case 1;
 		{
 		if(response)
 		{
			new query[126], pName[MAX_PLAYER_NAME];
			GetPlayerName(playerid, pName, sizeof(pName) );
			format (query, sizeof(query), "INSERT INTO accounts VALUES('%s', '%s')", pName, inputtext);
			mysql_query(query),

			SendClientMessage(playerid, -1, "You have succesfully registered your account!",
			
			SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999,
			SpawnPlayer(playerid),
			
 		}
	}
	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}



Re: Anyone can fix this for me? - Ivor8000 - 06.06.2017

Nevermind, I give up. - Script deleted.


Re: Anyone can fix this for me? - JasonRiggs - 06.06.2017

Code:
format(query), sizeof(query), "SELECT  FROM accounts WHERE name = '%s'", pName;
this is a wrong use change it to this
Code:
format(query, sizeof(query), "SELECT FROM accounts WHERE name = '%s'", pName);
Same to this
Code:
	format(query), sizeof(query), "SELECT  FROM accounts WHERE name = '%s'", pName;
change to this
Code:
format(query, sizeof(query), "SELECT FROM accounts WHERE name = '%s' AND PASSWORD = '%s'", pName, inputtext);
and these lines
Code:
SendClientMessage(playerid, -1, "You have succesfully logged in!",
 		SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999,
 		SpawnPlayer(playerid),;
to these
Code:
SendClientMessage(playerid, -1, "You have succesfully logged in!");
 		SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999);
 		SpawnPlayer(playerid);
These
Code:
SendClientMessage(playerid, -1, "Incorrect password!",
			ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Login", "Please enter your password to login.", "Login", "Cancel"),
 		,
to those
Code:
SendClientMessage(playerid, -1, "Incorrect password!");
			ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Login", "Please enter your password to login.", "Login", "Cancel");
And finally
Code:
GetPlayerName(playerid, pName, sizeof(pName) );
			format (query, sizeof(query), "INSERT INTO accounts VALUES('%s', '%s')", pName, inputtext);
			mysql_query(query),

			SendClientMessage(playerid, -1, "You have succesfully registered your account!",
			
			SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999,
			SpawnPlayer(playerid),
should be changed to
Code:
GetPlayerName(playerid, pName, sizeof(pName));
			format (query, sizeof(query), "INSERT INTO accounts VALUES('%s', '%s')", pName, inputtext);
			mysql_query(query),

			SendClientMessage(playerid, -1, "You have succesfully registered your account!");
			
			SetSpawnInfo(playerid, 1, 299, 1, 2, 3, 1, 1, 1, 999, 1, 999);
			SpawnPlayer(playerid);
Concentration man


Re: Anyone can fix this for me? - Ivor8000 - 06.06.2017

Thanks but I deleted the script already.


Re: Anyone can fix this for me? - JasonRiggs - 06.06.2017

Giving up so quickly isn't from scripters features, If you give up such quickly, I suggest you shouldn't even script, As scripting ain't breastfeeding, It's hard not anyone can script.


Re: Anyone can fix this for me? - Ivor8000 - 06.06.2017

However I did what you said now, will test of it should've worked.