Hey, People
Ich bekomme folgende Errors und Warnings, und hab keinen Plan, was falsch ist
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(833) : warning 213: tag mismatch
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(840) : warning 202: number of arguments does not match definition
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(844) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(844) : warning 215: expression has no effect
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(844) : error 001: expected token: ";", but found ")"
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(844) : error 029: invalid expression, assumed zero
C:\Users\Markus\Desktop\sampserver\gamemodes\ggmode.pwn(844) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(response == 1)
{
new float: health;
new float: money;
if(listitem == 0)
{
if(GetPlayerHealth(playerid,health)>=100)
{
SendClientMessage(playerid,0xFF0005FF,"Du hast bereits Full-HP");
return 1;
}
else
{
if(GetPlayerMoney(playerid,money)>=2)
{
GivePlayerMoney(playerid,-2);
SendClientMessage(playerid,0xFF0005FF,"Du hast dir einen Hotdog gekauft");
SetPlayerHealth(playerid,+20);
return 1;
}
else
{
SendClientMessage(playerid,0xFF0005FF,"Du hast zu wenig Geld");
return 1;
}
return 1;
}
}
if(listitem == 1)
{
if(GetPlayerHealth(playerid,health)>=100)
{
SendClientMessage(playerid,0xFF0005FF,"Du hast bereits Full-HP");
return 1;
}
else
{
if(GetPlayerMoney(playerid,money)>=4)
{
GivePlayerMoney(playerid,-4);
SendClientMessage(playerid,0xFF0005FF,"Du hast dir ein Schnitzel gekauft");
SetPlayerHealth(playerid,+50);
return 1;
}
return 1;
}
return 1;
}
if(listitem == 2)
{
if(GetPlayerHealth(playerid,health)>=100)
{
SendClientMessage(playerid,0xFF0005FF,"Du hast bereits Full-HP");
return 1;
}
else
{
if(GetPlayerMoney(playerid,money)>=3)
{
GivePlayerMoney(playerid,-3);
SendClientMessage(playerid,0xFF0005FF,"Du hast dir einen Burger gekauft");
SetPlayerHealth(playerid,+35);
return 1;
}
return 1;
}
return 1;
}
if(listitem == 3)
{
if(GetPlayerHealth(playerid,health)>=100)
{
SendClientMessage(playerid,0xFF0005FF,"Du hast bereits Full-HP");
return 1;
}
else
{
if(GetPlayerMoney(playerid,money)>=1)
{
GivePlayerMoney(playerid,-1);
SendClientMessage(playerid,0xFF0005FF,"Du hast dir einen Engergy-Drink gekauft");
SetPlayerHealth(playerid,+10);
return 1;
}
return 1;
}
}
return 1;
}