Hi,
ich wollte eine Art Arbeitsamt machen mit folgendem Code,
//-------------------------------[Arbeitsamt]--------------------------------------------------------------------------
if(!strcmp(cmdtext, "/jobs", true))
{
if(PlayerToPoint(2.0, playerid, 1729.4226, -1180.8145, 23.8365))
{
SendClientMessage(playerid, 0x33AA33AA, "ID 1 | Detective");
SendClientMessage(playerid, 0x33AA33AA, "ID 2 | Anwalt");
SendClientMessage(playerid, 0x33AA33AA, "ID 3 | Hure");
SendClientMessage(playerid, 0x33AA33AA, "ID 4 | Drogen Dealer");
SendClientMessage(playerid, 0x33AA33AA, "ID 5 | Carjacker");
SendClientMessage(playerid, 0x33AA33AA, "ID 6 | Mechaniker");
SendClientMessage(playerid, 0x33AA33AA, "ID 7 | Bodyguard");
SendClientMessage(playerid, 0x33AA33AA, "ID 8 | Waffen Dealer");
SendClientMessage(playerid, 0x33AA33AA, "ID 9 | Car Dealer");
SendClientMessage(playerid, 0x33AA33AA, "ID 10| Boxer");
SendClientMessage(playerid, 0x33AA33AA, "ID 11| Bus Fahrer");
SendClientMessage(playerid, 0x33AA33AA, "ID 12| Zeitungsjunge");
SendClientMessage(playerid, 0x33AA33AA, "ID 13| Trucker");
SendClientMessage(playerid, 0xAA3333AA, "Tippe /showjob [id]");
SendClientMessage(playerid, 0xAA3333AA, "Damit ein Marker an der Stelle ercheint");
SendClientMessage(playerid, 0xAA3333AA, "wo du dich um diesen Job bewerben kannst!");
}
else
{
SendClientMessage(playerid, 0xAA3333AA, "Du Bist nicht im Arbeitsamt!");
}
}
if(!strcmp(var5, "/showjob", true))
{
new var13[255];
new var14 = 0;
var6 = function1718(cmdtext, var9, 32);
var14 = strval(var6);
if(PlayerToPoint(2.0, playerid, 1729.4226, -1180.8145, 23.8365))
{
switch(var14) {
case 1:
glob15C64 = SetPlayerCheckpoint(playerid, -2162.5721, -2385.7, 30.625, 3.0);
case 2:
glob15C68 = SetPlayerCheckpoint(playerid, -2162.5721, -2385.7, 30.625, 3.0);
case 3:
glob15C6C = SetPlayerCheckpoint(playerid, 2421.5234, -1221.7491, 25.3997, 3.0);
case 4:
glob15C70 = SetPlayerCheckpoint(playerid, 2166.3771, -1675.383, 15.0859, 3.0);
case 5:
glob15C74 = SetPlayerCheckpoint(playerid, 1109.3317, -1796.3042, 16.5937, 3.0);
case 6:
glob15C78 = SetPlayerCheckpoint(playerid, -1932.3859, 276.2117, 41.0391, 3.0);
case 7:
glob15C7C = SetPlayerCheckpoint(playerid, 2226.1716, -1718.1792, 13.5165, 3.0);
case 8:
glob15C80 = SetPlayerCheckpoint(playerid, 1366.4324, -1275.2096, 13.5468, 3.0);
case 9:
glob15C84 = SetPlayerCheckpoint(playerid, 531.793, -1292.4045, 17.2422, 3.0);
case 10:
glob15C88 = SetPlayerCheckpoint(playerid, 2229.1298, -1722.1301, 13.5625, 3.0);
case 11:
glob15C8C = SetPlayerCheckpoint(playerid, 1154.2208, -1770.8204, 16.5991, 3.0);
case 12:
glob15C90 = SetPlayerCheckpoint(playerid, -2040.9437, 456.2395, 35.1719, 3.0);
case 13:
glob15C94 = SetPlayerCheckpoint(playerid, -77.7288, -1136.3897, 1.078, 3.0);
}
}
else
{
SendClientMessage(playerid, 0xAA3333AA, "Du Bist nicht im Arbeitsamt!");
}
}
Aber es kommt dann immer ein prolem,
und zwar, sobald ich /showjob und alles da drunter einfüge:
Zitat
Pawn Compiler library hat ein Problem festgestellt und muss beendet werden.
Weis jmd wie das kommt?
PS:
Habe das mal iwo gefunden,
weiss net mehr wo,
liegt der Fehler vllt mit glob15C94 etc zusammen?
Wie kann man lösen?