if(strcmp(strget(cmdtext,0), "/hotdog", true) == 0) //42496
{
if(IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_RED, "Du musst Online sein");
{
if(PlayerInfo[playerid][pJob] == 20) return SendClientMessage(playerid, COLOR_RED, "Du musst Hotdogverkäufersein");
{
if(IsPlayerInVehicle(playerid, 588) return SendClientMessage(playerid, COLOR_RED, "Du musst im Hotdogwagen sein"); //42502
{
if(!strlen(strget(cmdtext,1))) return SendClientMessage(playerid, COLOR_RED, "Benutzte: /hotdog [ID] [Preis]"); //42504
{
if(!strlen(strget(cmdtext,1))) return SendClientMessage(playerid, COLOR_RED, "Benutzte: /hotdog [ID] [Preis]"); //42506
{
new ziel = strval(strget(cmdtext,1)); //42508
new preis = strval(strget(cmdtext,2)); //42509
GivePlayerMoney(ziel, -preis);
SetPlayerHealth(ziel, +25); //42511
GivePlayerMoney(playerid, preis)
}
else
{
SendClientMessage(playerid, COLOR_RED, " Du bist kein Hotdogverkäufer !");
}
}
}
}
}
return 1;
}
[hide]C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42496) : error 017: undefined symbol "strget"
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42502) : error 001: expected token: ")", but found "return"
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42504) : error 017: undefined symbol "strget"
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42506) : error 017: undefined symbol "strget"
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42508) : error 017: undefined symbol "strget"
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42509) : error 017: undefined symbol "strget"
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42511) : error 029: invalid expression, assumed zero
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42511) : warning 215: expression has no effect
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42511) : error 001: expected token: ";", but found ")"
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42511) : error 029: invalid expression, assumed zero
C:\Users\Sven\Desktop\3c Client released\gamemodes\lyd.pwn(42511) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
[/hide]
mfg lolli
P.S.: Wie mache ich denn das accept teil?
Habe ein gf edit aber mit /accept sachen noch nie gearbeitet