11.03.2015, 16:20
The warnings I get(All of them the same type, 3 lines):
The warning places of the first 2 warnings:
The warning lines for first 2 warnings:
1st:
2nd:
For the third one:
Warning line for it for the 3rd warning:
Код:
Warning 219: local variable "time" shadows a variable at a preceding level Warning 219: local variable "time" shadows a variable at a preceding level Warning 219: local variable "time" shadows a variable at a preceding level
Код:
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); }
1st:
Код:
SendClientMessageToAll(-1,string);
Код:
pInfo[playerid][pCoins]++;
Код:
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();
Код:
GivePlayerXP(playerid,15);