WorldOfDarkMusic
Ученик
PHP:
C:\Users\Дмитрий\Desktop\gamemodes\serv.PWN(13195) : error 017: undefined symbol "string"
C:\Users\Дмитрий\Desktop\gamemodes\serv.PWN(13195) : error 017: undefined symbol "string"
C:\Users\Дмитрий\Desktop\gamemodes\serv.PWN(13195) : error 029: invalid expression, assumed zero
C:\Users\Дмитрий\Desktop\gamemodes\serv.PWN(13195) : fatal error 107: too many error messages on one line
PHP:
else if(CP[playerid]==1)
{
if(IsPlayerInAnyVehicle(playerid))
{
PlayerInfo[playerid][pJackSkill] ++;
if(PlayerInfo[playerid][pJackSkill] == 50)
{ SendClientMessage(playerid, COLOR_YELLOW, "Твой скилл автоугонщика теперь уровня 2, теперь ты получаешь больше денег, и меньше времени на ожидание!"); }
else if(PlayerInfo[playerid][pJackSkill] == 100)
{ SendClientMessage(playerid, COLOR_YELLOW, "Твой скилл автоугонщика теперь уровня 3, теперь ты получаешь больше денег, и меньше времени на ожидание!"); }
else if(PlayerInfo[playerid][pJackSkill] == 200)
{ SendClientMessage(playerid, COLOR_YELLOW, "Твой скилл автоугонщика теперь уровня 4, теперь ты получаешь больше денег, и меньше времени на ожидание!"); }
else if(PlayerInfo[playerid][pJackSkill] == 400)
{ SendClientMessage(playerid, COLOR_YELLOW, "Твой скилл автоугонщика теперь уровня 5, теперь ты получаешь больше денег, и меньше времени на ожидание!"); }
new level = PlayerInfo[playerid][pJackSkill];
if(level >= 0 && level <= 50)
{
new rand = random(sizeof(SELLCAR1));
format(string, sizeof(string), "Ты продал машину за $%d, ты можешь продать еще раз через 20 минут.", SELLCAR1[rand]); // Тут ошибка
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GiveMoney(playerid, SELLCAR1[rand]);
PlayerInfo[playerid][pCarTime] = 1200;
}
else if(level >= 51 && level <= 100)
{
new rand = random(sizeof(SELLCAR2));
format(string, sizeof(string), "Ты продал машину за $%d, ты можешь продать еще раз через 18 минут.", SELLCAR2[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GiveMoney(playerid, SELLCAR2[rand]);
PlayerInfo[playerid][pCarTime] = 1080;
}
else if(level >= 101 && level <= 200)
{
new rand = random(sizeof(SELLCAR3));
format(string, sizeof(string), "Ты продал машину за $%d, ты можешь продать еще раз через 16 минут.", SELLCAR3[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GiveMoney(playerid, SELLCAR3[rand]);
PlayerInfo[playerid][pCarTime] = 960;
}
else if(level >= 201 && level <= 400)
{
new rand = random(sizeof(SELLCAR4));
format(string, sizeof(string), "Ты продал машину за $%d, ты можешь продать еще раз через 13 минут.", SELLCAR4[rand]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GiveMoney(playerid, SELLCAR4[rand]);
PlayerInfo[playerid][pCarTime] = 780;
}
else if(level >= 401)
{
new money = 6000;
format(string, sizeof(string), "Ты продал машину за $%d, ты можешь продать еще раз через 10 минут.", money);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GiveMoney(playerid, money);
PlayerInfo[playerid][pCarTime] = 600;
}
GameTextForPlayer(playerid, "~y~ЈPOѓA‡ –AЋ…мY", 2500, 1);
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
