13.07.2014, 22:23
Hey there so i got this problem when i try to compile my game mode i get warnings
I've tried almost everything and it wont fix, could anyone please help me. IM SUPER NEW AT SCRIPTING .
Код:
C:\Users\Flamur\Desktop\Windows Version [0.3z]\pawno\include\YSI\y_va/impl.inc(568) : warning 219: local variable "time" shadows a variable at a preceding level C:\Users\Flamur\Desktop\Windows Version [0.3z]\pawno\include\YSI\y_va/impl.inc(573) : warning 219: local variable "time" shadows a variable at a preceding level C:\Users\Flamur\Desktop\Windows Version [0.3z]\pawno\include\YSI\y_hooks/impl.inc(2629) : warning 219: local variable "time" shadows a variable at a preceding level
Код:
public OnPlayerEnterCheckpoint(playerid) { if(team[playerid] == TEAM_HUMAN) { new string[256]; if(Map[EvacType] == 1) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-1408.2051,-970.8841,198.9738); format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to evacuation point and has received 1 coin!",PlayerName(playerid)); SendClientMessageToAll(-1,string); DisablePlayerCheckpoint(playerid); CurePlayer(playerid); GivePlayerXP(playerid,50); pInfo[playerid][pEvac]++; pInfo[playerid][pCoins]++; SetPlayerColor(playerid,COLOR_YELLOW); } if(Map[EvacType] == 2) { SetPlayerPos(playerid,3024.4983,447.9744,14.7813); SetPlayerInterior(playerid,0); format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the water evacuation point and has received 1 coin!",PlayerName(playerid)); SendClientMessageToAll(-1,string); DisablePlayerCheckpoint(playerid); CurePlayer(playerid); GivePlayerXP(playerid,50); pInfo[playerid][pEvac]++; pInfo[playerid][pCoins]++; SetPlayerColor(playerid,COLOR_YELLOW); } if(Map[EvacType] == 3) { SetPlayerPos(playerid,285.5,2510.30004882817,121.5); SetPlayerInterior(playerid,0); format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the helicopter evacuation point and has received 1 coin!",PlayerName(playerid)); SendClientMessageToAll(-1,string); DisablePlayerCheckpoint(playerid); CurePlayer(playerid); GivePlayerXP(playerid,50); pInfo[playerid][pEvac]++; pInfo[playerid][pCoins]++; SetPlayerColor(playerid,COLOR_YELLOW); } if(Map[EvacType] == 4) { SetPlayerPos(playerid,1456.3000488281,-1126,427.10000610352);///By Fahad SetPlayerInterior(playerid,0); format(string,sizeof(string), ""chat""COL_LIGHTBLUE" %s made it to the Parachute evacuation point and has received 1 coin!",PlayerName(playerid)); SendClientMessageToAll(-1,string); DisablePlayerCheckpoint(playerid); CurePlayer(playerid); GivePlayerXP(playerid,50); pInfo[playerid][pEvac]++; pInfo[playerid][pCoins]++; GivePlayerWeapon(playerid,46,1); SetPlayerColor(playerid,COLOR_YELLOW); } } return 1; }
Код:
{ if(team[playerid] == TEAM_ZOMBIE) { if(pInfo[playerid][pZombieClass] == SCREAMERZOMBIE) { if(gettime() - 9 < Abilitys[playerid][ScreamerZombieAb]) return GameTextForPlayer(playerid,"~w~ Still recovering",1000,5); { foreach(Player,i) { switch(GetPlayerSkin(i)) { case NON_IMMUNE,285: { if(GetDistanceBetweenPlayers(playerid,i) < 5.0) { GetClosestPlayer(i); ApplyAnimation(i, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1); GameTextForPlayer(i,"~n~~n~~n~~n~~g~Screamer Attacked",3500,5); SetTimerEx("ScreamerClearAnim",1500,0,"i",i); GivePlayerXP(playerid,15); Abilitys[playerid][ScreamerZombieAb] = gettime(); } } } } } } } }