Jump to content

Recommended Posts

Posted

~ERORI-WARNING~

C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6151) : warning 225: unreachable code
C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(6146) : warning 204: symbol is assigned a value that is never used: "string"
C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(12186) : error 017: undefined symbol "string"
C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(12186) : error 017: undefined symbol "string"
C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(12186) : error 029: invalid expression, assumed zero
C:\Users\Cosmin\Desktop\Gamemode AngelZone\gamemodes\Rusteze.pwn(12186) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

 

 

liniii: 

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    new string[300];
    if (playertextid == LoginPTD[2]) ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: LOGIN","Welcome to the Elapsed RPG Server.\n\nVa rugam sa introduceti parola mai jos!", "LOGIN", "Anulare");
    {
        return 1;
    }
    return 0;
}

 

 

          SendClientMessage(playerid, COLOR_GENANNOUNCE, " ");
            SendClientMessage(playerid, COLOR_GENANNOUNCE, " ");
            format(string, sizeof(string), "Name: %s", GetName(playerid));
            PlayerTextDrawSetString(playerid, LoginPTD[5], string);
            PlayerTextDrawSetString(playerid, LoginPTD[2], "password: ~b~click");
            format(string, sizeof(string), "Last Login:~n~%s", GetName(playerid));
            PlayerTextDrawSetString(playerid, LoginPTD[13], string);
            
            for(new i = 0; i < 19; i++) PlayerTextDrawShow(playerid, LoginPTD);
            for(new i = 0; i < 1; i++) TextDrawShowForPlayer(playerid, LoginTD);

  • 4 weeks later...
Posted (edited)
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if (playertextid == LoginPTD[2]) ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: LOGIN","Welcome to the Elapsed RPG Server.\n\nVa rugam sa introduceti parola mai jos!", "LOGIN", "Anulare");
    {
        return 1;
    }
    return 0;
}

 

 

         

	SendClientMessage(playerid, COLOR_GENANNOUNCE, " ");
    SendClientMessage(playerid, COLOR_GENANNOUNCE, " ");
	new string[300];
    format(string, sizeof(string), "Name: %s", GetName(playerid));
    PlayerTextDrawSetString(playerid, LoginPTD[5], string);
    PlayerTextDrawSetString(playerid, LoginPTD[2], "password: ~b~click");
    format(string, sizeof(string), "Last Login:~n~%s", GetName(playerid));
    PlayerTextDrawSetString(playerid, LoginPTD[13], string);

    for(new i = 0; i < 19; i++) PlayerTextDrawShow(playerid, LoginPTD);
                          for(new i = 0; i < 1; i++) TextDrawShowForPlayer(playerid, LoginTD); 

Tu foloseai stringul in publicul onplayerclickplayertextdraw, unde nu mi se pare ca ai avea nevoie de el. Pune stringul inainte de formatul cu Name. Cred ca ar trebui sa se rezolve. Sper ca te-am ajutat!

Edited by BaFFyJunior

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.