Hier der Errorcode:
C:\Users\Christian\Desktop\WoS 2.4\pawno\include\M_Bot.inc(603) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
C:\Users\Christian\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(1479) : error 020: invalid symbol name ""
C:\Users\Christian\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(31639) : warning 225: unreachable code
C:\Users\Christian\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(31664) : error 029: invalid expression, assumed zero
C:\Users\Christian\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(31664) : error 029: invalid expression, assumed zero
C:\Users\Christian\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(31664) : warning 215: expression has no effect
C:\Users\Christian\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(31664) : error 001: expected token: ";", but found "]"
C:\Users\Christian\Desktop\World of San Andreas 4.0\gamemodes\WorldofSanAndreas.pwn(31664) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Die Variable:
new Bootsmann[MAX_PLAYERS];
Der Scriptteil
//bootsmannsystem
if(strcmp(cmd, "/getmats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 100)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GOLD, "____________________________|Warenhilfe|____________________________");
SendClientMessage(playerid, COLOR_WHITE, "Benutzung: /getmats [Anzahl]");
SendClientMessage(playerid, COLOR_WHITE, "*Kaufen [LS], Checkpoint");
SendClientMessage(playerid, COLOR_GOLD,"__________________________________________________________________");
return 1;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "Benutzung: /getmats [Anzahl]");
SendClientMessage(playerid, COLOR_GREY, "*Preis pro Ware: 400€, Maximale Waren: 40");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 90.0, 1888.6704,-2638.9941,13.5469))
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht am GetPoint in SF am Grossen Containerschiff!");
return 1;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 553)
{
SendClientMessage(playerid, COLOR_GRAD1, "Du kannst nur mit Fischkutter Mats kaufen!");
return 1;
}
new menge;
menge = strval(tmp);
new preis = menge*400;
if(menge < 1 || menge > 40)
{
SendClientMessage(playerid, COLOR_GRAD1, "Du musst mindestens 1 Waren und maxiimal 100 Waren kaufen!");
return 1;
}
if(Bootsmann[playerid] >= 40)
{
SendClientMessage(playerid, COLOR_GRAD1, "Du hast schon 40 Waren dabei!");
return 1;
}
if(preis > GetPlayerMoney(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "Kannst du dir nicht leisten!");
return 1;
}
Bootsmann[playerid] = menge;
GivePlayerMoney(playerid, -preis);
format(string, sizeof(string), "*Du hast dir %d Waren im Wert von %d$ gekauft", menge, preis);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Fliege jetzt zum SF Airport (Roter Marker)");
new Zufallcheckpoints = random(2) + 1
if(Zufallcheckpoints == 1)
{
}
else if(Zufallscheckpoints == 2)
{
}
return 1;
}
}
}
}