[Ajuda] Gsting
#1

Bom estou com uma certa dificuldade com essa sting


CУDIGO
PHP код:
#define SetPlayerPosEx(%0,%1,%2,%3,%4) SetPlayerPos(%0,%1,%2,%3) && SetPlayerFacingAngle(%0,%4)
SetPlayerInteriorEx(playerid,interiorid)
{
    
format(gstringsizeof(gstring), "Interior setado para %d."interiorid);
    
SendClientMessageEx(playerid0xB4B5B7AAgstring);
    
SetPlayerInterior(playerid,interiorid);
}
SendClientMessageEx(playerid,color,message[])
{
    if(
TweetDesativado[playerid] == 0)
    {
        
SendClientMessage(playerid,color,message);
    }
    return 
1;
}
SendClientMessageToAllEx(color,message[])
{
    for(new 
i=0i<Maximo_Playersi++)
    {
        if(
TweetDesativado[i] == 0)
        {
            
SendClientMessage(i,color,message);
        }
    }
    return 
1;

ERROS QUE DГO
PHP код:
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(410) : error 017undefined symbol "gstring"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(410) : error 017undefined symbol "gstring"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(410) : error 029invalid expressionassumed zero
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(410) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Obrigado
Reply
#2

pawn Код:
new gstring[60];
Reply
#3

Quote:
Originally Posted by 22
Посмотреть сообщение
pawn Код:
new gstring[60];
PHP код:
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(410) : warning 219local variable "gstring" shadows a variable at a preceding level
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(418) : error 017undefined symbol "TweetDesativado"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(418) : warning 215expression has no effect
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(418) : error 001expected token";"but found "]"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(418) : error 029invalid expressionassumed zero
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(418) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Ainda n deu
Reply
#4

pawn Код:
new gstring[128];
new TweetDesativado[MAX_PLAYERS];
Pхe isso depois das includes
Reply
#5

tens algum gstring num enum?
Reply
#6

Quote:
Originally Posted by Input
Посмотреть сообщение
pawn Код:
new gstring[128];
new TweetDesativado[MAX_PLAYERS];
Pхe isso depois das includes
ta dando os msm eerrros
Reply
#7

pawn Код:
#define SetPlayerPosEx(%0,%1,%2,%3,%4) SetPlayerPos(%0,%1,%2,%3) && SetPlayerFacingAngle(%0,%4)
new TweetDesativado[MAX_PLAYERS];
new gstring[128];

stock SetPlayerInteriorEx(playerid,interiorid)
{
    format(gstring, sizeof(gstring), "Interior setado para %d.", interiorid);
    SendClientMessageEx(playerid, 0xB4B5B7AA, gstring);

    SetPlayerInterior(playerid,interiorid);
}
stock SendClientMessageEx(playerid,color,message[])
{
    if(TweetDesativado[playerid] == 0)
    {
        SendClientMessage(playerid,color,message);
    }
    return 1;
}
stock SendClientMessageToAllEx(color,message[])
{
    for(new i=0; i<Maximo_Players; i++)
    {
        if(TweetDesativado[i] == 0)
        {
            SendClientMessage(i,color,message);
        }
    }
    return 1;
}
Aqui compila normalmente...
Reply
#8

PHP код:
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(253) : warning 219local variable "gstring" shadows a variable at a preceding level
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(255) : error 029invalid expressionassumed zero
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(255) : error 017undefined symbol "SetPlayerInteriorEx"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(257) : error 017undefined symbol "interiorid"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(258) : error 017undefined symbol "SendClientMessageEx"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(260) : error 017undefined symbol "playerid"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(262) : error 029invalid expressionassumed zero
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(262) : error 017undefined symbol "SendClientMessageEx"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(264) : error 017undefined symbol "playerid"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(266) : error 017undefined symbol "playerid"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(270) : warning 225unreachable code
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(270) : error 029invalid expressionassumed zero
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(270) : error 017undefined symbol "SendClientMessageToAllEx"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(272) : error 017undefined symbol "Maximo_Players"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(276) : error 017undefined symbol "color"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(282) : warning 225unreachable code
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(356) : warning 209: function "F_ObjectUpdate" should return a value
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3067) : error 017undefined symbol "TendoEvento"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3069) : error 017undefined symbol "SendClientMessageEx"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3072) : error 017undefined symbol "TimerEvento"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3073) : error 017undefined symbol "TendoEvento"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3073) : warning 215expression has no effect
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3074) : error 017undefined symbol "EventoTipo"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3074) : warning 215expression has no effect
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3077) : error 017undefined symbol "PodeIrEvento"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3077) : warning 215expression has no effect
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3079) : error 017undefined symbol "Maximo_Players"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3081) : error 017undefined symbol "pLogged"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3089) : error 017undefined symbol "TendoEvento"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3091) : error 017undefined symbol "SendClientMessageEx"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3095) : error 017undefined symbol "TendoEvento"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3095) : warning 215expression has no effect
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3096) : error 017undefined symbol "EventoTipo"
C:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3096) : warning 215expression has no effect
C
:\Users\Anonymous\Desktop\BrasilScriptGaMeS\gamemodes\ScriptGamesCaio.pwn(3099) : error 017undefined symbol "PodeIrEvento"

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
Reply
#9

Testei funзгo por funзгo e funcionou.. o erro ta em outra parte do seu gm.
Reply
#10

TENTA AE,

PHP код:
#define SetPlayerPosEx(%0,%1,%2,%3,%4) SetPlayerPos(%0,%1,%2,%3) && SetPlayerFacingAngle(%0,%4)
new TweetDesativado[MAX_PLAYERS];
stock SetPlayerInteriorEx(playerid,interiorid){
    static 
int_str[128];
    
format(int_strsizeof(int_str), "Interior setado para %d."interiorid);
    
SendClientMessageEx(playerid0xB4B5B7AAint_str);
    
SetPlayerInterior(playerid,interiorid);
}
stock SendClientMessageEx(playerid,color,message[]){
    if(
TweetDesativado[playerid] == 0SendClientMessage(playerid,color,message);
    return 
true;
}
stock SendClientMessageToAllEx(color,message[]){
    for(new 
i=0i<Maximo_Playersi++){
        if(
TweetDesativado[i] == 0SendClientMessage(i,color,message);
    }
    return 
true;

Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)