[Ajuda] 3 Warnings.
#1

Eae Galera.

Bom, Tive A Ver Meu GM, E Mudei Isto:
PHP код:
SendClientMessage(giveid0x33CCFFAA"Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar!"); 
Por Isto:
PHP код:
SendClientMessage(giveid0x33CCFFAA"Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!"sendername); 
E Deu 3 Warnings.......
PHP код:
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(285) : warning 202number of arguments does not match definition
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(323) : warning 202number of arguments does not match definition
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(360) : warning 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Warnings

Linhas:
285
PHP код:
SendClientMessage(giveid0x33CCFFAA"Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!"sendername); 
323
PHP код:
SendClientMessage(giveid0x33CCFFAA"Vocк Acaba De Ser Expulso Da Polнcia Militar Pelo Lнder: %s!"sendername); 
360
PHP код:
SendClientMessage(giveid0x33CCFFAA"Vocк Acaba De Ser Promovido Na Polнcia Militar Pelo Lнder: %s!"sendername); 
Me Dб Uma Ajuda.
Reply
#2

Tens de fazer um string.
SendClientMessage й
SendClientMessage(const playerid,color,const string[]);
Por isso tens de fazer
pawn Код:
new string[128];
format(string,sizeof string"Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!", sendername);
SendClientMessage(giveid, 0x33CCFFAA, string);
Faz isso com todos.
Dб me rep se te ajudei
Reply
#3

Quote:
Originally Posted by DarkPT
Посмотреть сообщение
SendClientMessage nгo dб para usar funзхes do tipo "%d, %s, %i" dentro, para isso serve a format.
exemplo:
pawn Код:
new
   nome[MAX_PLAYER_NAME],
   sStr[128];

GetPlayerName(playerid, nome, sizeof(nome));
format(sStr, sizeof(sStr), "Vocк chama-se %s (:", nome);
SendClientMessage(playerid, -1, sStr);
Nгo sгo esse os unicos formats DUHH.
Existe %f %x %b %c %%
Reply
#4

Quote:
Originally Posted by FireCat
Посмотреть сообщение
Tens de fazer um string.
SendClientMessage й
SendClientMessage(const playerid,color,const string[]);
Por isso tens de fazer
pawn Код:
new string[128];
format(string,sizeof string"Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!", sendername);
SendClientMessage(giveid, 0x33CCFFAA, string);
Faz isso com todos.
Dб me rep se te ajudei
Fiz Isso =
PHP код:
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\pawno\include\Dini.inc(239) : warning 219local variable "string" shadows a variable at a preceding level
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\pawno\include\Utils.inc(1) : warning 219local variable "string" shadows a variable at a preceding level
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 001expected token","but found "-string-"
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : warning 215expression has no effect
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : warning 215expression has no effect
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 001expected token";"but found ")"
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 029invalid expressionassumed zero
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Reply
#5

Quote:
Originally Posted by 1The1AleX1
Посмотреть сообщение
Fiz Isso =
PHP код:
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\pawno\include\Dini.inc(239) : warning 219local variable "string" shadows a variable at a preceding level
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\pawno\include\Utils.inc(1) : warning 219local variable "string" shadows a variable at a preceding level
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 001expected token","but found "-string-"
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : warning 215expression has no effect
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : warning 215expression has no effect
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 001expected token";"but found ")"
C:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : error 029invalid expressionassumed zero
C
:\Users\Alexandre\Desktop\GTA MultyPlayer\GTA Samp\Servidor\Server Main File 3\gamemodes\TH.pwn(286) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Mostra o command todo.
Reply
#6

Quote:
Originally Posted by FireCat
Посмотреть сообщение
Mostra o command todo.
PHP код:
    if(!strcmp(cmd"/convidar"true))
        {
                if(
Cargo[playerid] < 6) return SendClientMessage(playerid0xFF0000FF"[ERRO] Vocк Nгo Й Lнder!");
                new 
giveplayer[20];
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp)) return SendClientMessage(playerid0xB4B5B7FF"Uso: /Convidar [PlayerId]");
                
recrutado ReturnUser(tmp);
                if(!
IsPlayerConnected(giveid))return SendClientMessage(playerid0xFF0000FF"[Erro] Jogador Desconetado!");
                if(
IsPlayerConnected(recrutado) && Org[playerid] > 0)
                {
                        if(
Cargo[playerid] < 6) return SendClientMessage(playerid0xFF0000FF"[ERRO] Vocк Nгo Й Lнder!");
                        
Org[playerid] = Org[recrutado];
                        if(
Org[playerid] == PM)
                          
GetPlayerName(playeridsendernamesizeof(sendername));
                        
SendClientMessage(playerid0x33CCFFAA"Vocк Convidou O Jogador Para A Polнcia Militar Com Sucesso!");
                        
SendClientMessage(giveid0x33CCFFAA"Vocк Acaba De Ser Convidado Para Entrar Na Polнcia Militar Pelo Lнder: %s!"sendername);
                        
GetPlayerName(recrutadogiveplayer20);
                        switch (
OrgInfo[Org[playerid]][Vaga])
                        {
                                case 
0,1: { format(OrgInfo[Org[playerid]][Membro1], MAX_PLAYER_NAMEgiveplayer); }
                                case 
2: { format(OrgInfo[Org[playerid]][Membro2], MAX_PLAYER_NAMEgiveplayer); }
                                case 
3: { format(OrgInfo[Org[playerid]][Membro3], MAX_PLAYER_NAMEgiveplayer); }
                                case 
4: { format(OrgInfo[Org[playerid]][Membro4], MAX_PLAYER_NAMEgiveplayer); }
                                case 
5: { format(OrgInfo[Org[playerid]][Membro5], MAX_PLAYER_NAMEgiveplayer); }
                                case 
6: { format(OrgInfo[Org[playerid]][Membro6], MAX_PLAYER_NAMEgiveplayer); }
                                case 
7: { format(OrgInfo[Org[playerid]][Membro7], MAX_PLAYER_NAMEgiveplayer); }
                                case 
8: { format(OrgInfo[Org[playerid]][Membro8], MAX_PLAYER_NAMEgiveplayer); }
                                case 
9: { format(OrgInfo[Org[playerid]][Membro9], MAX_PLAYER_NAMEgiveplayer); }
                                case 
10: { format(OrgInfo[Org[playerid]][Membro10], MAX_PLAYER_NAMEgiveplayer); }
                        }
                        
SalvarOrgs();
                        
OrgInfo[Org[playerid]][Vaga]++;
                }
                else { 
SendClientMessage(playerid0xFF0000FF"[Erro] Vocк Nгo Estб Em Uma Organizaзгo!"); }
                return 
true;
        } 
Reply
#7

Me manda o GM por MP que eu conserto e te envio de volta.
Reply
#8

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Me manda o GM por MP que eu conserto e te envio de volta.
VLWWWWWWWWWWWWWWWWWW
Reply
#9

Pronto, consertado.

Jб enviei o link por MP.
Reply
#10

Resolvido.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)