SA-MP Forums Archive
[Dъvida/Ajuda] Dъvida besta e significativa para mim :) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) (/showthread.php?tid=279186)



[Dъvida/Ajuda] Dъvida besta e significativa para mim :) - Kuddy - 25.08.2011

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


Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - Shadoww5 - 25.08.2011

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.


Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - RockFire - 25.08.2011

printf, nгo й print


Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - [R] ousenber [K] - 25.08.2011

Aproveitando como seria em define?


Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - Kuddy - 25.08.2011

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] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$



Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - RockFire - 25.08.2011

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.


Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - [R] ousenber [K] - 25.08.2011

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




Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - Kuddy - 25.08.2011

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] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$



Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - [R] ousenber [K] - 25.08.2011

/\ coloca %d e tenta

Fuck Yeah ! \/

This forum requires that you wait 120 seconds between posts. Please try again in 40 seconds.


Re: [Dъvida/Ajuda] Dъvida besta e significativa para mim :) - RockFire - 25.08.2011

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