31.03.2010, 14:30
Код:
C:\Documents and Settings\Kasutaja\My Documents\San Andreas Multiplayer Server\gamemodes\sg.pwn(40124) : error 017: undefined symbol "cars" C:\Documents and Settings\Kasutaja\My Documents\San Andreas Multiplayer Server\gamemodes\sg.pwn(40125) : error 017: undefined symbol "cars" C:\Documents and Settings\Kasutaja\My Documents\San Andreas Multiplayer Server\gamemodes\sg.pwn(40127) : error 017: undefined symbol "h" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
Код:
if(strcmp(cmd, "/leiaauto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(Funktsioonmehaanikauto[playerid] == 0)
{
if(PlayerInfo[playerid][pJob] != 7)
{
SendClientMessage(playerid, COLOR_GREY, "[TЦЦ] Sa ei ole mehaanik!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "[KASUTAMINE] /leiaauto [sхiduki ID]");
return 1;
}
tmp = strtok(cmdtext, idx);
cars = strval(tmp);
if(cars < 184 || cars > 330) { SendClientMessage(playerid, COLOR_GREY, "[FUNKTSIOON] Sхiduki ID peab olema 81 kuni 330!"); return 1; }
//AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
SetPlayerCheckpoint(playerid,CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz],8.0);
SendClientMessage(playerid, COLOR_WHITE, "[MEHAANIK] Auto asukoht on mдrkitud radaril. (Punane)");
Funktsioonmehaanikauto[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[FUNKTSIOON] Sa oled juba teinud! Mine punase markeri juurde!");
return 1;
}
}
return 1;
}
Код:
cars = strval(tmp);

