Was ist da Falsch:
if(strcmp(cmd, "/buyvehbiz", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pVehbiskey] != 255)
{
SendClientMessage(playerid, COLOR_WHITE, " You already own a business, type /sellvehbiz if you want to buy this one.");
return 1;
}
for(new b = 0; b < sizeof(VehBizzInfo); b++)
{
PlayerInfo[playerid][pVehbiskey] = b+100;
VehBizzInfo[b][vbOwned] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(VehBizzInfo[b][vbOwner], sendername, 0, strlen(sendername), 255);
GivePlayerMoney(playerid,-5000000);
SendClientMessage(playerid, COLOR_WHITE, "Congratulations, On Your New Purchase.");
SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new business help section.");
DateProp(playerid);
OnPropUpdate();
OnPlayerUpdate(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that");
}
return 1;
}
}
wenn ich complimiere kommt immer dieser fehler:
C:\Dokumente und Einstellungen\Peter Beck\Desktop\Peter\ GTA Samp Server\gamemodes\gf.pwn(12649) : error 029: invalid expression, assumed zero
Ich denk des ist Klammerfehler aber ich weiß net genau wie ichs umändern muss das es geht!
Danke!!!
//edit Bei Zeile 24