13.07.2011, 00:30
Boa noite ..
Usei search e achei esse cmd ai no link postado pelo shickcard
https://sampforum.blast.hk/showthread.php?tid=216015
tentei colocar no meu gm deu esses erros ai
alguйm sabe oque eu preciso colocar?
Usei search e achei esse cmd ai no link postado pelo shickcard
https://sampforum.blast.hk/showthread.php?tid=216015
tentei colocar no meu gm deu esses erros ai
Код:
new transportadores[6]; transportadores[0] = AddStaticVehicleEx(461,1793.74120000,-1934.25850000,13.00840000,356.64410000,6,6,86400); //PCJ-600 transportadores[1] = AddStaticVehicleEx(461,1791.54580000,-1934.23850000,13.00200000,1.29400000,6,6,86400); //PCJ-600 transportadores[2] = AddStaticVehicleEx(461,1789.37820000,-1934.31130000,13.01350000,0.32670000,6,6,86400); //PCJ-600 transportadores[3] = AddStaticVehicleEx(461,1787.16630000,-1934.08630000,12.98640000,356.71750000,6,6,86400); //PCJ-600 transportadores[4] = AddStaticVehicleEx(461,1785.11540000,-1934.08440000,12.98070000,0.86500000,6,6,86400); //PCJ-600 transportadores[5] = AddStaticVehicleEx(420,1776.75630000,-1931.60820000,13.16630000,324.90410000,6,6,86400); //Taxi public OnPlayerStateChange(playerid, newstate, oldstate) { new vid = GetPlayerVehicleID(playerid); if(vid==transportadores[0]||vid==transportadores[1]||vid==transportadores[2]||vid==transportadores[3]||vid==transportadores[4]||vid==transportadores[5]||vid==transportadores[6]) { if(Profissao[playerid] == TRANSPORTEMUNICIPAL) //troca pelo o que voce colocou no new para fazer org/profissao { } else { SendClientMessage(playerid,0xC2A2DAAA,"Vocк nгo й Um Transportador Municipal"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } } return 1; } return 1; }
Quote:
C:\Arquivos de programas\Rockstar Games\Gamemode\Gamemode Atual\pawno\Vag.pwn(8219) : error 032: array index out of bounds (variable "transportadores") C:\Arquivos de programas\Rockstar Games\Gamemode\Gamemode Atual\pawno\Vag.pwn(8234) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |