Jump to content

problema compilare string.....


xCosminu.

Recommended Posts

~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);

Link to comment
Share on other sites

  • 4 weeks later...
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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.