Jump to content
  • 0

Problema compilare help me plzzzzzz


Question

Posted

Am incercat sa fac login cu textdraw si cand compilez imi da asta 

C:\Users\seby\Desktop\Flash RPG\pawno\include\systems.inc(3893) : warning 215: expression has no effect
C:\Users\seby\Desktop\Flash RPG\pawno\include\systems.inc(3893) : error 001: expected token: ";", but found "["
C:\Users\seby\Desktop\Flash RPG\pawno\include\systems.inc(3893) : error 029: invalid expression, assumed zero
C:\Users\seby\Desktop\Flash RPG\pawno\include\systems.inc(3893) : warning 215: expression has no effect
C:\Users\seby\Desktop\Flash RPG\pawno\include\systems.inc(3893) : error 001: expected token: ";", but found "]"
C:\Users\seby\Desktop\Flash RPG\pawno\include\systems.inc(3893) : 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.

 

uitati si linia LoginPTD[playerid][0] = CreatePlayerTextDraw(playerid, 227.900024, 194.162475, "PASSWORD: CLICK");

 Va rog sa ma ajutati, dau +1

                                                SA:MP-ul nu inseamna pixeli, inseamna distractie!

12 answers to this question

Recommended Posts

  • 0
Posted

uppppppppppp

                                                SA:MP-ul nu inseamna pixeli, inseamna distractie!

  • 0
Posted
1 hour ago, andrei9971 said:

Probabil ai uitat un punct si virgula. Arata liniile de mai sus.

stock PlayerTextdraws(playerid) {
    TestTD = CreatePlayerTextDraw(playerid, 307.332946, 1161.081542, "Testa");
    PlayerTextDrawLetterSize(playerid, TestTD, 0.081666, 0.587852);
    PlayerTextDrawAlignment(playerid, TestTD, 1);
    PlayerTextDrawColor(playerid, TestTD, -1);
    PlayerTextDrawSetShadow(playerid, TestTD, 0);
    PlayerTextDrawSetOutline(playerid, TestTD, 0);
    PlayerTextDrawBackgroundColor(playerid, TestTD, 255);
    PlayerTextDrawFont(playerid, TestTD, 2);
    PlayerTextDrawSetProportional(playerid, TestTD, 1);
    PlayerTextDrawSetShadow(playerid, TestTD, 0);

    LoginPTD[playerid][0] = CreatePlayerTextDraw(playerid, 203.500000, 148.311035, "NAME:Edison");
    PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][0], 0.400000, 1.600000);
    PlayerTextDrawTextSize(playerid, LoginPTD[playerid][0], 434.000000, 0.000000);
    PlayerTextDrawAlignment(playerid, LoginPTD[playerid][0], 1);
    PlayerTextDrawColor(playerid, LoginPTD[playerid][0], -1);
    PlayerTextDrawUseBox(playerid, LoginPTD[playerid][0], 1);
    PlayerTextDrawBoxColor(playerid, LoginPTD[playerid][0], 255);
    PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][0], 0);

                                                SA:MP-ul nu inseamna pixeli, inseamna distractie!

  • 0
Posted

Hai ba ma ajuta cineva va rog?

 

                                                SA:MP-ul nu inseamna pixeli, inseamna distractie!

  • 0
Posted
Acum 35 minute, Seby Ioan a spus:

Hai ba ma ajuta cineva va rog?

 

Poti arata cum e definit LoginPTD? Ca am vaga banuiala ca e din cauza aia(presupunere)

  • 0
Posted
8 minutes ago, Banditul said:

Poti arata cum e definit LoginPTD? Ca am vaga banuiala ca e din cauza aia(presupunere)

new 
    Text:LoginTD[2],
     PlayerText:LoginPTD[MAX_PLAYERS][3];

 

                                                SA:MP-ul nu inseamna pixeli, inseamna distractie!

  • 0
Posted
10 minutes ago, Banditul said:

Poti arata cum e definit LoginPTD? Ca am vaga banuiala ca e din cauza aia(presupunere)

Nu aveam [MAX_PLAYERS] cand am definit loginptd dar acum dupa ce am bagat aia uite ce imi apare 

C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(2681) : error 017: undefined symbol "playertextid"
C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(16822) : error 035: argument type mismatch (argument 2)
C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(16823) : error 035: argument type mismatch (argument 2)
C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(16825) : error 035: argument type mismatch (argument 2)
C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(16827) : error 035: argument type mismatch (argument 2)
C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(32991) : warning 217: loose indentation
C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(33006) : warning 217: loose indentation
C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(33010) : error 035: argument type mismatch (argument 2)
C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(38440) : warning 203: symbol is never used: "CrateTD"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
 

                                                SA:MP-ul nu inseamna pixeli, inseamna distractie!

  • 0
Posted
Acum 2 minute, Seby Ioan a spus:

C:\Users\seby\Desktop\Flash RPG\gamemodes\gmm.pwn(2681) : error 017: undefined symbol "playertextid"

playertextid nu e in acel context, probabil ai incercat sa detectezi daca un PlayerText e apasat la 

OnPlayerClickTextDraw

in loc de 

OnPlayerClickPlayerTextDraw

 

Acum 6 minute, Seby Ioan a spus:

error 035: argument type mismatch (argument 2)

Pentru asta trebuie sa postezi linile

  • 0
Posted
4 minutes ago, Banditul said:

playertextid nu e in acel context, probabil ai incercat sa detectezi daca un PlayerText e apasat la 


OnPlayerClickTextDraw

in loc de 


OnPlayerClickPlayerTextDraw

 

Pentru asta trebuie sa postezi linile

format(string, sizeof(string), "Name: %s", GetName(playerid));
                PlayerTextDrawSetString(playerid, LoginPTD[0], string);
                PlayerTextDrawSetString(playerid, LoginPTD[1], "Password:~b~click");
                format(string, sizeof(string), "Last Login:~n~%s", laston);
                PlayerTextDrawSetString(playerid, LoginPTD[2], string);

                for(new i = 0; i < 3; i++) PlayerTextDrawShow(playerid, LoginPTD);
                for(new i = 0; i < 2; i++) TextDrawShowForPlayer(playerid, LoginTD);
                SelectTextDraw(playerid, 0xFFFFF00FF);

 

ai skype cv sa vb acolo ?

                                                SA:MP-ul nu inseamna pixeli, inseamna distractie!

  • 0
Posted
Acum 5 minute, Seby Ioan a spus:

format(string, sizeof(string), "Name: %s", GetName(playerid));
                PlayerTextDrawSetString(playerid, LoginPTD[0], string);
                PlayerTextDrawSetString(playerid, LoginPTD[1], "Password:~b~click");
                format(string, sizeof(string), "Last Login:~n~%s", laston);
                PlayerTextDrawSetString(playerid, LoginPTD[2], string);

                for(new i = 0; i < 3; i++) PlayerTextDrawShow(playerid, LoginPTD);
                for(new i = 0; i < 2; i++) TextDrawShowForPlayer(playerid, LoginTD);
                SelectTextDraw(playerid, 0xFFFFF00FF);

 

ai skype cv sa vb acolo ?

E clar care e problema, tocmai tu ai zis ca uitasei sa adaugi [MAX_PLAYERS] 

format(string, sizeof(string), "Name: %s", GetName(playerid));
PlayerTextDrawSetString(playerid, LoginPTD[playerid][0], string);
PlayerTextDrawSetString(playerid, LoginPTD[playerid][1], "Password:~b~click");
format(string, sizeof(string), "Last Login:~n~%s", laston);
PlayerTextDrawSetString(playerid, LoginPTD[playerid][2], string);

for(new i = 0; i < 3; i++) PlayerTextDrawShow(playerid, LoginPTD[playerid][i]);
for(new i = 0; i < 2; i++) TextDrawShowForPlayer(playerid, LoginTD[i]);
SelectTextDraw(playerid, 0xFFFFF00FF);

 

  • 0
Posted
1 minute ago, Banditul said:

E clar care e problema, tocmai tu ai zis ca uitasei sa adaugi [MAX_PLAYERS] 


format(string, sizeof(string), "Name: %s", GetName(playerid));
PlayerTextDrawSetString(playerid, LoginPTD[playerid][0], string);
PlayerTextDrawSetString(playerid, LoginPTD[playerid][1], "Password:~b~click");
format(string, sizeof(string), "Last Login:~n~%s", laston);
PlayerTextDrawSetString(playerid, LoginPTD[playerid][2], string);

for(new i = 0; i < 3; i++) PlayerTextDrawShow(playerid, LoginPTD[playerid][i]);
for(new i = 0; i < 2; i++) TextDrawShowForPlayer(playerid, LoginTD[i]);
SelectTextDraw(playerid, 0xFFFFF00FF);

 

unde adaug? is incepator , iti multumesc mult ca ma ajuti

 

                                                SA:MP-ul nu inseamna pixeli, inseamna distractie!

  • 0
Posted (edited)
Acum 2 minute, Seby Ioan a spus:

unde adaug? is incepator , iti multumesc mult ca ma ajuti

 

De unde le-ai luat tu, linia 16822 sau care o fi

Edited by Banditul

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.