SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 25/08/2011, 08:03 PM   #1
Kuddy
High-roller
 
Kuddy's Avatar
 
Join Date: Jun 2011
Location: Brasil / Paraná
Posts: 2,876
Reputation: 313
Default [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

Bom, este é um exemplo do que eu estou fazendo:

Topo GM:
pawn Code:
new version = 0.1;

OnGameModInit
pawn Code:
print("$$       America MMO Florest - Versao %s", version);

Só que me aparecem os seguintes warnings:
Quote:
Originally Posted by Pawno maldito
D:\SA-MP\Gunners\gamemodes\MMOv1.pwn(146) : warning 202: number of arguments does not match definition Linha do OnGM init
D:\SA-MP\Gunners\gamemodes\MMOv1.pwn(534) : warning 203: symbol is never used: "version"
Sei que esta dúvida é insignificante, besta, retardada, infantil, otaria, fela da mãe ou besta, mas por favor me respondam pois eu não sei xD
__________________
"CRIANÇÃ GAMER OTAKO QUE SOFREU BULLYING NA ESCOLA E AINDA É BV"
Kuddy is offline   Reply With Quote
Old 25/08/2011, 08:06 PM   #2
Shadoww5
High-roller
 
Join Date: Apr 2011
Posts: 2,197
Reputation: 63
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

Code:
D:\SA-MP\Gunners\gamemodes\MMOv1.pwn(534) : warning 203: symbol is never used: "version"
Neste caso, o pawno acusa que a array version não está sendo usada.

Você poderia fazer assim (tenho quase certeza que funciona):

PHP Code:
new version;
version 0.1
Quanto ao outro erro, o correto seria printf.
Shadoww5 is offline   Reply With Quote
Old 25/08/2011, 08:06 PM   #3
RockFire
Gangsta
 
RockFire's Avatar
 
Join Date: Nov 2010
Posts: 919
Reputation: 39
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

printf, não é print
__________________
RockFire is offline   Reply With Quote
Old 25/08/2011, 08:06 PM   #4
[R] ousenber [K]
Gangsta
 
[R] ousenber [K]'s Avatar
 
Join Date: Jan 2011
Posts: 892
Reputation: 18
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

Aproveitando como seria em define?
[R] ousenber [K] is offline   Reply With Quote
Old 25/08/2011, 08:08 PM   #5
Kuddy
High-roller
 
Kuddy's Avatar
 
Join Date: Jun 2011
Location: Brasil / Paraná
Posts: 2,876
Reputation: 313
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

pawn Code:
public OnGameModeInit() // Linha 140
{
    print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    print("$$");
    print("$$       All Rights Reserved ®");
    print("$$");
    print("$$       America MMO Florest - Versao %s", version);
    print("$$"); // Linha 147
    print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    return 1;
} // linha 150


@Edit:
Se eu coloco version = 0.1; como variável global, da erro. Se eu coloco version = 0.1; na Callback OnGmInit da tag misthmatch, então tem alguma merda faltando/errada :S

@Edit²:
Eu coloquei a linha em que tem o version em printf, tirou um dos warnings:
Quote:
Originally Posted by Logs do server
[17:14:14] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
[17:14:14] $$
[17:14:14] $$ All Rights Reserved ®
[17:14:14] $$
[17:14:14] $$ America MMO Florest - Versao Í
[17:14:14] $$
[17:14:14] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
__________________
"CRIANÇÃ GAMER OTAKO QUE SOFREU BULLYING NA ESCOLA E AINDA É BV"
Kuddy is offline   Reply With Quote
Old 25/08/2011, 08:11 PM   #6
RockFire
Gangsta
 
RockFire's Avatar
 
Join Date: Nov 2010
Posts: 919
Reputation: 39
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

pawn Code:
public OnGameModeInit() // Linha 140
{
    new version[] = "0.1";
    printf("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    printf("$$");
    printf("$$       All Rights Reserved ®");
    printf("$$");
    printf("$$       America MMO Florest - Versao %s", version);
    printf("$$"); // Linha 147
    printf("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    return 1;
} // linha 150

PULTA QUE PARIU: This forum requires that you wait 120 seconds between posts. Please try again in 69 seconds.
__________________
RockFire is offline   Reply With Quote
Old 25/08/2011, 08:15 PM   #7
[R] ousenber [K]
Gangsta
 
[R] ousenber [K]'s Avatar
 
Join Date: Jan 2011
Posts: 892
Reputation: 18
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

Não da , fiz que nem o rock falo e no final da isso :

pawn Code:
C:\Users\Washington\Desktop\testes\gamemodes\baserp.pwn(53) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

Aqui:

PHP Code:
new version 0.1
Mais se eu colocar new Float: version = 0.1; , funciona , so que no server.exe sai assim: 0.10000

[R] ousenber [K] is offline   Reply With Quote
Old 25/08/2011, 08:15 PM   #8
Kuddy
High-roller
 
Kuddy's Avatar
 
Join Date: Jun 2011
Location: Brasil / Paraná
Posts: 2,876
Reputation: 313
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

Eu usei o seguinte RockFire:
pawn Code:
print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    print("$$");
    print("$$       All Rights Reserved ®");
    print("$$");
    printf("$$       America MMO Florest - Versao %s", version);
    print("$$");
    print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
Só que nos logs ficam:
Quote:
Originally Posted by Logs
[17:14:14] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
[17:14:14] $$
[17:14:14] $$ All Rights Reserved ®
[17:14:14] $$
[17:14:14] $$ America MMO Florest - Versao Í
[17:14:14] $$
[17:14:14] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
__________________
"CRIANÇÃ GAMER OTAKO QUE SOFREU BULLYING NA ESCOLA E AINDA É BV"
Kuddy is offline   Reply With Quote
Old 25/08/2011, 08:17 PM   #9
[R] ousenber [K]
Gangsta
 
[R] ousenber [K]'s Avatar
 
Join Date: Jan 2011
Posts: 892
Reputation: 18
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

/\ coloca %d e tenta

Fuck Yeah ! \/

This forum requires that you wait 120 seconds between posts. Please try again in 40 seconds.
[R] ousenber [K] is offline   Reply With Quote
Old 25/08/2011, 08:17 PM   #10
RockFire
Gangsta
 
RockFire's Avatar
 
Join Date: Nov 2010
Posts: 919
Reputation: 39
Default Re: [Dúvida/Ajuda] Dúvida besta e significativa para mim :)

pawn Code:
public OnGameModeInit() // Linha 140
{
    new Float:version[] = "0.1";
    printf("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    printf("$$");
    printf("$$       All Rights Reserved ®");
    printf("$$");
    printf("$$       America MMO Florest - Versao %0.1f", version);
    printf("$$"); // Linha 147
    printf("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
    return 1;
} // linha 150
__________________
RockFire 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
[DUVIDA] Como passar de 0.3a para 0.3c ? :D tivin Português/Portuguese 7 20/04/2011 11:36 PM
[DUVIDA]Qual a diferença ZCMD, DCMD, e cmd Normal[DUVIDA] Dj_Paradox Português/Portuguese 3 21/02/2011 10:05 PM
[DUVIDA]Uma Duvida Só Ajuda Aqui Pf .. duany123 Português/Portuguese 3 25/08/2010 06:53 PM


All times are GMT. The time now is 06:14 AM.


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