19.12.2012, 21:52
TO FICANDO LOUCO O.O fiz quase igual oque ja tinha mais ele da warning e nao funfa direito
Original й o RandomSpawns:
Public:
Erros:
Original й o RandomSpawns:
PHP код:
new Float:randSpawns[][] =
{
{149,289.4233,-79.7561,1.5781},
{149,276.7640,-98.5500,1.5781},
{149,287.9870,-111.9570,1.5781},
{149,277.4197,-126.4641,1.5781},
{149,296.7240,-136.3060,1.5781},
{149,1328.2090,286.6209,19.5547},
{149,1337.4906,247.6242,19.5547},
{149,1341.0615,254.8134,19.5547},
{149,1345.9991,266.5428,19.5547},
{149,1350.1436,277.1566,19.5547}
};
new Float:RandomSpawns[][] =
{
{1291.7313,154.9617,20.4670,8.3286}, // Randomspawn
{1283.4293,198.9110,19.7981,159.9834}, // Randomspawn
{1208.7516,213.7832,19.5547,254.2742}, // Randomspawn
{1239.3820,279.3448,19.5469,189.1003}, // Randomspawn
{1358.7157,228.9505,19.5547,82.2760}, //randomspawn
{250.6406,-127.5368,2.8347,91.3202}, //randomspawn
{344.0678,-71.1226,2.4308,104.6719}, //randomspawn
{313.8252,-121.1610,3.5354,276.9834}, //randomspawn
{303.3202,-227.3698,1.5781,268.5233}, //RandomSpawn
{259.9327,-283.1946,1.5781,190.5025} // Randomspawn
};
PHP код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)){
if(!strfind(PlayerName(playerid),ZOMBIE_NAME,true)){
SetupZombie(playerid);
SetPlayerAttachedObject(playerid, 1, 18688, 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1, 0xFF00FF00);
}
}
new Random = random(sizeof(RandomSpawns));
if(!IsPlayerNPC(playerid)){
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
return 0;
}
new rand = random(sizeof(randSpawns));
if(!IsPlayerNPC(playerid)){
SetPlayerPos(playerid, randSpawns[rand][0], randSpawns[rand][1], randSpawns[rand][2]);
SetPlayerFacingAngle(playerid, randSpawns[rand][3]);
return 1;
}
if(ZombieKill[playerid] != -1){
Zombies[ZombieKill[playerid]][ZombieKilling] = -1;
ZombieKill[playerid] = -1;
return 1;
}
return 1;
}
Код HTML:
C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(164) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(165) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(166) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(167) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(168) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(169) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(170) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(171) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(172) : warning 213: tag mismatch C:\Users\makin_000.001\Desktop\samp03e_svr_R2_win32\gamemodes\zombie.pwn(173) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Warnings.