29.08.2015, 20:37
Quote:
sry guys but why this happeing for me ?
Код:
C:\Users\KaTA\Desktop\samp training\Test\gamemodes\Test.pwn(2812) : error 017: undefined symbol "foreach" C:\Users\KaTA\Desktop\samp training\Test\gamemodes\Test.pwn(2812) : error 029: invalid expression, assumed zero C:\Users\KaTA\Desktop\samp training\Test\gamemodes\Test.pwn(2812) : error 017: undefined symbol "i" C:\Users\KaTA\Desktop\samp training\Test\gamemodes\Test.pwn(2812) : fatal error 107: too many error messages on one line PHP код:
|
And also try making ur code more readable, Like:
PHP код:
new time;
switch(listitem)
{
case 0: time = 7;
case 1: time = 12;
case 2: time = 16;
case 3: time = 20;
case 4: time = 0;
}
foreach(new i : Player) SetPlayerTime(playerid, time, 0);