18.05.2011, 21:30
Galera fui mecher no GM e deu esses erros e avisos alguem pode concertar para min, e indicar os problemas.
Ai eu nunca mais vou cometer-los.
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : error: 017: undefined symbol "i"
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : error: 017: undefined symbol "i"
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : error: 029: invalid expression, assumed zero
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : warning: 235: public function lacks forward declaration (symbol "SafeGivePlayerWeaponVIP")
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : warning: 235: public function lacks forward declaration (symbol "RemovePlayerWeaponVIP")
CODIGOS:
Ai eu nunca mais vou cometer-los.
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : error: 017: undefined symbol "i"
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : error: 017: undefined symbol "i"
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : error: 029: invalid expression, assumed zero
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : warning: 235: public function lacks forward declaration (symbol "SafeGivePlayerWeaponVIP")
D:\Dados\Documentos\Vida Nova Evolution [VNE]V3\gamemodes\VNE.pwn(21605) : warning: 235: public function lacks forward declaration (symbol "RemovePlayerWeaponVIP")
CODIGOS:
Код:
if (!strcmp("/comprarcarrovip", cmdtext, true)) { if(PlayerToPoint(2.0, playerid, 547.6361, -1290.75, 17.24824)) { if(SBizzInfo[13][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~fim de estoque", 5000, 1); return 1; } if(PlayerInfo[i][pVipLevel] == 1) //21605 { if(PlayerInfo[i][pVipLevel] == 2) //21607 { for(new i=0;i<MAX_PLAYERS;i++){if(Conce[i]==1){SendClientMessage(playerid, COLOR_OOC, "Alguйm Ja Estб Comprando Um Veiculo Aguarde");TogglePlayerControllable(playerid, 1);return 1;}} if (GetOwnedVehicleID(playerid) != INVALID_VEHICLE_ID) return SendClientMessage(playerid, RED, "Vocк Ja Possui Um Veiculo!"); if (GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid, RED, "Saia de seu interior"); // To prevent screw ups GetPlayerPos(playerid, OrgX[playerid], OrgY[playerid], OrgZ[playerid]); new color1 = CarColor[playerid][0]; new color2 = CarColor[playerid][1]; TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid, -1980.9927,293.0207,38.9285); SetPlayerCameraLookAt(playerid, -1971.9277,284.5396,34.8777); SetPlayerVirtualWorld(playerid, playerid); ShopCar[playerid] = CreateVehicle(CarModels[0], -1972.5745,284.5845,34.8772, 0.0, color1, color2, 6000000); SetVehicleVirtualWorld(ShopCar[playerid], playerid); PutPlayerInVehicle(playerid, ShopCar[playerid], 0); TogglePlayerControllable(playerid, 0); CarShopping[playerid] = true; Conce[playerid] = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Carros Sport custam R$90.000,00 Motos velozes R$50.000,00 Carros Populares R$32.000,00"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Motos normais custam R$15.000,00 E veнculos aйreos custam mais de R$ 1.000.000,00"); SendClientMessage(playerid, COLOR_GREY, "Vocк Pode Trocar os Carros Apertando As Setas do Teclado"); SendClientMessage(playerid, COLOR_GREY, "Para Adquirir O Carro Basta Apertar a Tecla CTRL de Seu Teclado"); SendClientMessage(playerid, COLOR_GREY, "Para Sair Da Concessionaria Basta Apertar a Tecla F ou Enter de Seu Teclado"); SendClientMessage(playerid, COLOR_GREEN, "Jб Possui Um Veiculo Em Mente? Use /pularveiculovip [Nomedocarro] Obs:Й Mais Recomendado Usar o CMD"); SendClientMessage(playerid, COLOR_YELLOW, "Para mudar a cor do carro antes de comprar digite /corcarrovip COR1 COR2!"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bugou ? Nгo Consegue Sair Use /sairconcevip!"); SetTimerEx("BrowseCars", 300, 0, "d", playerid); } } } else { SendClientMessage(playerid, COLOR_GREEN, "Vocк nгo й VIP"); } if else //21641 { SendClientMessage(playerid, COLOR_GREEN, "Vocк presisa estar na concessionбria"); } return 1; }
Код:
stock GetNameVIP(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; } public SafeGivePlayerWeaponVIP(plyid, weaponid, ammo) //51857 { GivePlayerWeapon(plyid, weaponid, ammo); return 1; } public RemovePlayerWeaponVIP(playerid, weaponid) //51863 { new plyWeaponsVIP[12] = 0; new plyAmmoVIP[12] = 0; for(new slot = 0; slot != 12; slot++) { new wepVIP, ammoVIP; GetPlayerWeaponData(playerid, slot, wepVIP, ammoVIP); if(wepVIP != weaponid && ammoVIP != 0) { GetPlayerWeaponData(playerid, slot, plyWeaponsVIP[slot], plyAmmoVIP[slot]); } } SafeResetPlayerWeapons(playerid); for(new slot = 0; slot != 12; slot++) { if(plyAmmoVIP[slot] != 0) { SafeGivePlayerWeapon(playerid, plyWeaponsVIP[slot], plyAmmoVIP[slot]); } } return 1; }