Anyone can fix this for me?
#15

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;
}
Reply


Messages In This Thread
Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:14
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:16
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:17
Re: Anyone can fix this for me? - by TonyII - 05.06.2017, 21:17
Re: Anyone can fix this for me? - by LetsOWN[PL] - 05.06.2017, 21:19
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:21
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:23
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:25
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:27
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:31
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:34
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 21:48
Re: Anyone can fix this for me? - by JasonRiggs - 05.06.2017, 21:59
Re: Anyone can fix this for me? - by Ivor8000 - 05.06.2017, 22:10
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 09:34
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 12:33
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 12:36
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 15:11
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 15:12
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 15:18
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 15:20
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 15:28
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 16:03
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 16:09
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 16:45
Re: Anyone can fix this for me? - by JasonRiggs - 06.06.2017, 17:01
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 17:35
Re: Anyone can fix this for me? - by Ivor8000 - 06.06.2017, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)