ShowPlayerDialog
#1

Code:

Код:
		ShowPlayerDialog(playerid, DIALOG_SET_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Enter Email", "Please enter your Email address into the box.", "Ok", "Cancel");
Errors:

Quote:

C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(120 : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(120 : error 001: expected token: ";", but found ")"
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(120 : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(120 : fatal error 107: too many error messages on one line

Whole code:
Under OnPlayerConnect - Public made by me - Works.
Код:
	if(strlen(PlayerInfo[playerid][pEmail]) < 3)
	{
	    SendClientMessageEx(playerid, COLOR_GREY, "  We have no email on file for this account, please enter your email below for Password Reset Purposes.");
		ShowPlayerDialog(playerid, DIALOG_SET_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Enter Email", "Please enter your Email address into the box.", "Ok", "Cancel");
	}
Includes:

Quote:

#include <a_samp>
#include <streamer>
#include <a_mysql>
#include <foreach>
#include <yom_buttons>
#include <djson>
#include <progress>
#include <YSI\y_timers>
#include <ZCMD>
#include <sscanf2>
#include <socket>
#include <FloodControl>

Reply
#2

make sure that you did #define DIALOG_SET_EMAIL 5 for example not anything else..
Reply
#3

Quote:

C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1523) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1523) : error 004: function "S@@_OnPlayerSpawn" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(152 : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(152 : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(152 : error 004: function "S@@_OnPlayerDeath" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1533) : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1533) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1533) : error 004: function "S@@_OnVehicleSpawn" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(153 : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(153 : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(153 : error 004: function "S@@_OnVehicleDeath" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1543) : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1543) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1543) : error 004: function "S@@_OnPlayerText" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(154 : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(154 : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(154 : error 004: function "zcmd_OnPlayerCommandText" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1550) : error 017: undefined symbol "cmdtext"
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(155 : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(155 : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(155 : error 004: function "S@@_OnPlayerEnterVehicle" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1563) : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1563) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1563) : error 004: function "S@@_OnPlayerExitVehicle" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(156 : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(156 : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(156 : error 004: function "S@@_OnPlayerStateChange" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1573) : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1573) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1573) : error 004: function "S@@_OnPlayerEnterCheckpoint" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(157 : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(157 : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(157 : error 004: function "S@@_OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1583) : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1583) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(1583) : error 004: function "S@@_OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(158 : warning 225: unreachable code
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Right.pwn(158 : error 029: invalid expression, assumed zero

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


26 Errors.

Код:
public OnPlayerConnect(playerid)
{
	if(PlayerInfo[playerid][pLoggedIn] != 1)
	{
	    SendClientMessageEx(playerid, COLOR_WHITE, "ERROR: You are not logged in!");
        Kick(playerid);
	}
	if(strlen(PlayerInfo[playerid][pEmail]) < 3)
	{
	    SendClientMessageEx(playerid, COLOR_GREY, "  We have no email on file for this account, please enter your email below for Password Reset Purposes.");
		ShowPlayerDialog(playerid, DIALOG_SET_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Enter Email", "Please enter your Email address into the box.", "Ok", "Cancel");
	}
	if(PlayerInfo[playerid][pHelper] > 1) SetPVarInt(playerid, "AdvisorDuty", 1); Advisors += 1;
	if(turfWarsRadar[playerid] == 0) {
 		ShowTurfWarsRadar(playerid);
    }
    if(!gPlayerLogged{playerid})
    {
        SendClientMessageEx(playerid, COLOR_WHITE, "ERROR: You are not logged in!");

	ShowMainMenuDialog(playerid, frame);
	PlayerInfo[playerid][pLevel] = 1;
	PlayerInfo[playerid][pAdmin] = 0;
	PlayerInfo[playerid][pReg] = 0;
	PlayerInfo[playerid][pSex] = 0;
	PlayerInfo[playerid][pAge] = 0;
	
	PlayerTextDrawShow(playerid, ServerTips);
	PlayerTextDrawShow(playerid, MessagesTD);
	PlayerTextDrawShow(playerid, ServerBanner);
	return 1;
}
Reply
#4

Never mind, FIXED IT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)