D:\Servers\Killer\gamemodes\gamemode.pwn(305) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(307) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(308) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(310) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(311) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(312) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(313) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(315) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(317) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(319) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(321) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(322) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(323) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(324) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(325) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(326) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(328) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(330) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(332) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(334) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(335) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(336) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(337) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(338) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(339) : error 017: undefined symbol "i" D:\Servers\Killer\gamemodes\gamemode.pwn(341) : error 017: undefined symbol "i" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
if(TutTime[i] >= 1) { TutTime[i] += 1; if(TutTime[i] == 3) {
Originally Posted by CalgonX
We're not psychic, show us the lines that are causing the errors.
|
forward SetPlayerUnjail();
public SetPlayerUnjail() { if(TutTime[i] >= 1) { TutTime[i] += 1; if(TutTime[i] == 3) { SendClientMessage(i, COLOR_YELLOW, "Text comes here"); } else if(TutTime[i] == 10) { SendClientMessage(i, COLOR_YELLOW, "Text comes here"); } else if(TutTime[i] == 15) { TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; TogglePlayerControllable(i, 1); MedicBill[i] = 0; SetPlayerSpawn(i); } } } } }
new i = 0; i < MAX_PLAYERS; i++
public SetPlayerUnjail() { for(new i=0; i<sizeof(TutTime); i++) { if(TutTime[i] >= 1) { TutTime[i] += 1; if(TutTime[i] == 3) { SendClientMessage(i, COLOR_YELLOW, "Text comes here"); } else if(TutTime[i] == 10) { SendClientMessage(i, COLOR_YELLOW, "Text comes here"); } else if(TutTime[i] == 15) { TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; TogglePlayerControllable(i, 1); MedicBill[i] = 0; SetPlayerSpawn(i); } } } }
Originally Posted by † мąүқоҳ™
Код:
new i = 0; i < MAX_PLAYERS; i++ |
Originally Posted by Centulo
Код:
forward SetPlayerUnjail(); Код:
public SetPlayerUnjail() { if(TutTime[i] >= 1) { TutTime[i] += 1; if(TutTime[i] == 3) { SendClientMessage(i, COLOR_YELLOW, "Text comes here"); } else if(TutTime[i] == 10) { SendClientMessage(i, COLOR_YELLOW, "Text comes here"); } else if(TutTime[i] == 15) { TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; TogglePlayerControllable(i, 1); MedicBill[i] = 0; SetPlayerSpawn(i); } } } } } |
public SetPlayerUnjail()
{
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if(TutTime[i] >= 1)
{
TutTime[i] += 1;
if(TutTime[i] == 3)
{
SendClientMessage(i, COLOR_YELLOW, "Text comes here");
}
else if(TutTime[i] == 10)
{
SendClientMessage(i, COLOR_YELLOW, "Text comes here");
}
else if(TutTime[i] == 15)
{
TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
TogglePlayerControllable(i, 1);
MedicBill[i] = 0;
SetPlayerSpawn(i);
}
}
}
return 1;
}