SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

Reply
 
Thread Tools Display Modes
Old 20/03/2017, 05:37 PM   #1
HackerAnonim
Little Clucker
 
Join Date: Dec 2016
Posts: 1
Reputation: 0
Default [PAWNO] Eroare la compilare

Salutare tuturor,

Astazi am vrut sa modific un gamemode si sa-l compilez.
Cand am incercat sa-l compilez mi-au aparut aceste erori :

Quote:
\gamemodes\gamemode.pwn(1154) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
\gamemodes\gamemode.pwn(1339) : warning 217: loose indentation
\gamemodes\gamemode.pwn(1371) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.

1154
SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0) ;

1339
if(strcmp(cmdtext,"/teles",true)==0)

1371
if ( strcmp ( cmdtext , "/lock", true)==0)

M-ar putea ajuta cineva?
HackerAnonim is offline   Reply With Quote
Old 21/03/2017, 04:09 AM   #2
HeLiOn_PrImE
High-roller
 
HeLiOn_PrImE's Avatar
 
Join Date: Jul 2010
Location: Cluj Napoca, Romania
Posts: 2,516
Reputation: 324
Default Re: [PAWNO] Eroare la compilare

La inceputul scriptului unde ai forward-urile adauga linia:
Code:
forward OnPlayerPrivmsg(playerid);
Nu stiu exact daca e numai playerid in paranteza, sau mai e si altceva. Te uiti unde e folosita functia si pui ce e acolo in paranteza si la forward.
Asta te va scapa de primul warning de la linia 1154.

Celelalte tin de aranjarea in pagina a codului.
Ai putea sa iei tot codul din GM si sa il prelucrezi cu un tool de indentare. Ultima data eu am folosit asta:
http://courses.cs.washington.edu/cou...au/indent.html (ai grija sa selectezi acolo mai jos "tabs").

O sa te scape de loose indentations, dar e foarte posibil sa iti aranjeze altcumva codul in pagina.
Eventual fa un back-up dupa ce ai rezolvat primul warning. Apoi daca nu iti place aranjeaza tool-ul codul, sa ai scriptul de rezerva.
Iti zic clar de acum ca cele doua warninguri nu iti vor afecta functionalitatea GM-ului. Indentarea corecta te ajuta insa, sa fi organizat.
__________________

"It's only a game, but people are real. You have to respect them." - Mick88
"You don't deserve a +rep, if you ask for it. Those who deserve it, don't have to ask." - me

HeLiOn_PrImE is offline   Reply With Quote
Old 26/03/2017, 09:21 AM   #3
edyun
Big Clucker
 
Join Date: Sep 2014
Posts: 54
Reputation: 3
Default Re: [PAWNO] Eroare la compilare

Acelea nu sunt erori,ar trebui ori sa iti aranjezi codul la liniile de la Loose Indenation or sa folosesti #pragma size 0
edyun is offline   Reply With Quote
Old 28/03/2017, 09:05 PM   #4
Spmn
Huge Clucker
 
Join Date: Jun 2015
Location: Romania
Posts: 450
Reputation: 91
Default Re: [PAWNO] Eroare la compilare

OnPlayerPrivmsg() ... LOL

Acel callback e outdated de vreo 7-8 ani. Ce script incerci sa compilezi?
Spmn is online now   Reply With Quote
Old 29/03/2017, 04:16 PM   #5
PawnFox
Huge Clucker
 
PawnFox's Avatar
 
Join Date: Feb 2012
Location: Europe/Romania
Posts: 249
Reputation: 14
Default Re: [PAWNO] Eroare la compilare

Quote:
Originally Posted by Spmn View Post
OnPlayerPrivmsg() ... LOL

Acel callback e outdated de vreo 7-8 ani. Ce script incerci sa compilezi?
Da, acel plugin a fost scos in versiuna 0.3a
__________________
PawnFox is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eroare compilare myhay9898 Romānă/Romanian 2 18/04/2015 02:30 PM
Eroare compilare. Rakku Romānă/Romanian 3 07/08/2014 08:34 AM
Eroare compilare Rakku Romānă/Romanian 4 06/08/2014 09:54 AM
eroare compilare gm kabroN Romānă/Romanian 1 05/01/2012 10:30 AM
Eroare la compilare. an4rei Romānă/Romanian 21 05/11/2011 05:06 PM


All times are GMT. The time now is 01:46 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.