[Dъvida/Ajuda] Dъvida besta e significativa para mim :)
#1

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
Reply
#2

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.
Reply
#3

printf, nгo й print
Reply
#4

Aproveitando como seria em define?
Reply
#5

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] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Reply
#6

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.
Reply
#7

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

Reply
#8

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] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Reply
#9

/\ coloca %d e tenta

Fuck Yeah ! \/

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)