24.06.2014, 04:02
Acho que ta dando um bug nas pos desse sistema aki sera que alguem me da uma ajuda
PHP код:
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(663) : warning 219: local variable "pPosX" shadows a variable at a preceding level
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(663) : warning 219: local variable "pPosY" shadows a variable at a preceding level
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(663) : warning 219: local variable "pPosZ" shadows a variable at a preceding level
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(664) : error 035: argument type mismatch (argument 2)
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(668) : warning 213: tag mismatch
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(668) : warning 213: tag mismatch
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(668) : warning 213: tag mismatch
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(668) : warning 213: tag mismatch
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(668) : warning 213: tag mismatch
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(668) : warning 213: tag mismatch
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(668) : warning 213: tag mismatch
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(663) : warning 203: symbol is never used: "pPosZ"
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(663) : warning 203: symbol is never used: "pPosY"
C:\Users\Diego\Desktop\PlayAlones\gamemodes\Alones.pwn(663) : warning 203: symbol is never used: "pPosX"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:pPosX, Float:pPosY, Float:pPosZ;
GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
for(new i_slot = 0, gun, ammo; i_slot != 12; i_slot++)
{
GetPlayerWeaponData(playerid, i_slot, gun, ammo);
if(gun != 0 && ammo != 0) CreateDroppedGun(gun, ammo, pPosX+random(2)-random(2), pPosY+random(2)-random(2), pPosZ);
}
return 1;
}