[Ajuda] GM Baixado da net [26 Erros]
#1

Bem Aqui estou eu novamente pois baixei o bwe v2 e deu muitos erros e queria que vocкs me ajuda cem.bem vamos la nй^^

pawn Код:
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2254) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2255) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2256) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2257) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2258) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2259) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2260) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2269) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2270) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2271) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2268) : warning 204: symbol is assigned a value that is never used: "index"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2827) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(2827) : error 033: array must be indexed (variable "cmd")
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3050) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3050) : error 033: array must be indexed (variable "tmp")
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3088) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3088) : error 033: array must be indexed (variable "tmp")
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3094) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3094) : error 033: array must be indexed (variable "tmp")
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3131) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3131) : error 033: array must be indexed (variable "tmp")
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3152) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3152) : error 033: array must be indexed (variable "tmp")
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3221) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3221) : error 033: array must be indexed (variable "tmp")
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3252) : error 017: undefined symbol "strtok"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(3252) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


Me Ajudem Galera
Reply
#2

https://sampwiki.blast.hk/wiki/Strtok
Reply
#3

Puz Aquela Strtok no Comeзo, e deu 4 erros

pawn Код:
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(6302) : warning 202: number of arguments does not match definition
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(10936) : error 017: undefined symbol "set"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(10943) : error 017: undefined symbol "set"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(15039) : error 017: undefined symbol "StrToInt"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(15062) : error 017: undefined symbol "StrToInt"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

Sу simbolos nгo definidos e o primeiro й falta de argumentos ou argumentos errados.

This forum requires that you wait 120 seconds between posts. Please try again in 62 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 33 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 5 seconds.
Reply
#5

Posta as linhas...
Reply
#6

pawn Код:
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(6302) : warning 202: number of arguments does not match definition


{

Codigo:

pawn Код:
if(strcmp(cmd, "/cnn", true) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
tmp = strtok(cmdtext, idx, strlen(cmdtext));
if (!strlen(tmp))
{
SendClientMessage(playerid, Vermelho, "Digite: /cnn [texto]");
return 1;
}
if(PlayerInfo[playerid][Logged] == 1)
{
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
{
format(string, sizeof(string), "~b~%s~r~: ~w~%s", aname, tmp);
GameTextForAll(string, 5000, 3);
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) Vocк nгo tem permissгo para usar este comando!");
}
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) Vocк tem que estar logado para usar este comando!");
}
return 1;
}
}


Linha:

pawn Код:
tmp = strtok(cmdtext, idx, strlen(cmdtext));


pawn Код:
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(10936) : error 017: undefined symbol "set"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(10943) : error 017: undefined symbol "set"


{

Codigo:

pawn Код:
if(strcmp(cmd, "/setcar", true) == 0) {
            new aname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
            format(file, sizeof(file), PASTA_CONTAS, aname);
            if(pAdmin[playerid] > 2){
            new carid, Float:ang, nome[128], cor1[128], cor2;
            new tmp[256];
            new gString[256];

            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)){
                SendClientMessage(playerid, tcadm, "ID invбlido. ID's vбlidos: 400 a 611");
                return 1;
            }
            carid = strval(tmp);
        if(carid == 425 || carid == 469 || carid == 538 || carid == 537 || carid == 520 || carid == 449 || carid == 447 || carid == 569 || carid == 570 || carid == 432)
        {
            SendClientMessage(playerid, tcadm, "ERRO: ID invбlido!");
            return 1;
        }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid, tcadm, "Use: /setcar [id-veiculo] [dono] [cor1] [cor2]");
                return 1;
            }
            set(nome, tmp);

            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid, tcadm, "Use: /setcar [id-veiculo] [dono] [cor1] [cor2]");
                return 1;
            }
            set(cor1,tmp);

            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid, tcadm, "Use: /setcar [id-veiculo] [dono] [cor1] [cor2]");
                return 1;
            }
            cor2 = strval(tmp);
   if(carid >= 400 && carid <= 611){
                if(IsPlayerInAnyVehicle(playerid)){
                    if(IsNumeric(cor1)){
                        new playerip[64];
                        GetPlayerIp(playerid, playerip, sizeof(playerip));
                        new File:temp;
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X, Y, Z);
                        GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
                        format(gString, sizeof(gString), "%d %f %f %f %f %s %d //%s - Setado por %s - %s\r\n", carid, X, Y, Z, ang, cor1, cor2, nome, PlayerName(playerid), playerip);
                        temp = fopen("carros.txt", io_append);
                        fwrite(temp, gString);
                        fclose(temp);
                        SendClientMessage(playerid, COLOR_GREEN, "Carro setado com sucesso.");
                        printf("%s acaba de setar um carro para %s - %s.", PlayerName(playerid), nome, playerip);
                        SetTimerEx("CriarVeiculo",10000,false,"dffffdd",carid,X,Y,Z,ang,strval(cor1),cor2);
                        return 1;
                    } else {
                        SendClientMessage(playerid, tcadm,"Use: /setcar [id-veiculo] [carro-local-ou-dono] [cor1] [cor2]");
                        return 1;
                    }
                }
                else{
                    SendClientMessage(playerid, tcadm, "Vocк nгo estб em nenhum veнculo e assim nгo pode setar um carro.");
                    return 1;
                }
            }
            else{
                SendClientMessage(playerid, tcadm, "ID fora do normal | ID's = 400-611");
                return 1;
            }
        } else {
            SendClientMessage(playerid, tcadm, "Vocк nгo tem permissгo para isso");
            return 1;
        }
    }


Linhas:

pawn Код:
set(nome, tmp);


pawn Код:
set(cor1,tmp);


pawn Код:
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(15039) : error 017: undefined symbol "StrToInt"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BWEV-2.0.pwn(15062) : error 017: undefined symbol "StrToInt"


{

Codigo:

pawn Код:
if(dialogid == 4502)
{
new nomepl[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomepl, sizeof(nomepl));
if(response == 1)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
if(!IsNumeric(inputtext)){
SendClientMessage(playerid, Vermelho, " - Valor invбlido.");
return 1;
} else {
for(new carro = 0; carro < MAX_CARROS; carro++)
{
format(string, sizeof(string), "carro%d.ini", carro);
if(strcmp(dini_Get(string, "Dono"), aname, true) == 0){
dini_IntSet(string, "Cor1", StrToInt(inputtext));
ChangeVehicleColor(dini_Int(string, "Id"), dini_Int(string, "Cor1"), dini_Int(string, "Cor2"));
}
}
}
}
}
if(dialogid == 4503)
{
new nomepl[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomepl, sizeof(nomepl));
if(response == 1)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
if(!IsNumeric(inputtext)){
SendClientMessage(playerid, Vermelho, " - Valor invбlido.");
return 1;
} else {
for(new carro = 0; carro < MAX_CARROS; carro++)
{
format(string, sizeof(string), "carro%d.ini", carro);
if(strcmp(dini_Get(string, "Dono"), aname, true) == 0){
dini_IntSet(string, "Cor2", StrToInt(inputtext));
ChangeVehicleColor(dini_Int(string, "Id"), dini_Int(string, "Cor1"), dini_Int(string, "Cor2"));
}
}
}
}
}
return 1;

}


Linhas:

pawn Код:
dini_IntSet(string, "Cor1", StrToInt(inputtext));

pawn Код:
dini_IntSet(string, "Cor2", StrToInt(inputtext));

Reply
#7

pawn Код:
tmp = strtok(cmdtext, idx);

strcat(nome, tmp);
strcat(cor1, tmp);

dini_IntSet(string, "Cor1", strval(inputtext));
dini_IntSet(string, "Cor2", strval(inputtext));
Reply
#8

Vlw mano Compiliou Direitim + rep
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)