26.07.2011, 18:32
Eu estava vendo um tutorial de como criar organizaзхes aqui no forum '' http://forum.sa-mp.com/showthread.ph...ht=sistema+adm '' para colocar no server que estou criando, sу que ao copilar aparece os seguintes erros:
Variavel criada: new VPMilitar[5];
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : error 017: undefined symbol "VPMilitar"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : warning 215: expression has no effect
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : error 001: expected token: ";", but found "]"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Linha 91:
VPMilitar[0] = AddStaticVehicleEx(523,1602.23535156,-1684.06750488,5.55100250,90.00000000,-1,-1,15); //HPV1000
E se eu retiro o '' VPMilitar '' aparece outro erro:
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(342) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(342) : error 017: undefined symbol "strtok"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(342) : error 033: array must be indexed (variable "tmp")
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(342) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Linha 342:
tmp = strtok(cmd, idx);
Comando:
if(strcmp(cmdtext, "/convidar", true) == 0)
{
new tmp[128]
tmp = strtok(cmd, idx);
new PlayerB;
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /convidar [id]");
PlayerB = strval(tmp);
if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, Branco, "Este jogador nгo estб conectado");
if(PlayerInfo[playerid][PMilitar] >= 6)
{
PlayerInfo[PlayerB][PMilitar] = 1;
SendClientMessage(PlayerB, Branco, "Vocк entrou а Polнcia Militar");
SetPlayerColor(PlayerB, Cor_PMilitar);
return 1;
_________________________
Alguem pode dar uma ajuda nisso? '-'
Variavel criada: new VPMilitar[5];
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : error 017: undefined symbol "VPMilitar"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : warning 215: expression has no effect
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : error 001: expected token: ";", but found "]"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(91) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Linha 91:
VPMilitar[0] = AddStaticVehicleEx(523,1602.23535156,-1684.06750488,5.55100250,90.00000000,-1,-1,15); //HPV1000
E se eu retiro o '' VPMilitar '' aparece outro erro:
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(342) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(342) : error 017: undefined symbol "strtok"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(342) : error 033: array must be indexed (variable "tmp")
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPG.pwn(342) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Linha 342:
tmp = strtok(cmd, idx);
Comando:
if(strcmp(cmdtext, "/convidar", true) == 0)
{
new tmp[128]
tmp = strtok(cmd, idx);
new PlayerB;
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /convidar [id]");
PlayerB = strval(tmp);
if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, Branco, "Este jogador nгo estб conectado");
if(PlayerInfo[playerid][PMilitar] >= 6)
{
PlayerInfo[PlayerB][PMilitar] = 1;
SendClientMessage(PlayerB, Branco, "Vocк entrou а Polнcia Militar");
SetPlayerColor(PlayerB, Cor_PMilitar);
return 1;
_________________________
Alguem pode dar uma ajuda nisso? '-'