07.02.2009, 15:58 
	
	
	
		the error was caused because you had "else {} else {}" if you would had intend your code you would have known
This is your version fixed
And this is the version with else if
This will both work but dont forgot both are different working codes
	
	
	
	
This is your version fixed
pawn Код:
public CustomPickups()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (PlayerToPoint(3, i,2026.4064,1017.9352,10.8203)) // Bank
{
GameTextForPlayer(i, "~y~Vitaj v ~y~Banke~n~~w~Napis /enterbank aby si vosiel dnu", 5000, 5);
printf("Vitajvbanke");
}
else
{
if (PlayerToPoint(2, i,1315.3907,1436.6250,55.0039)) //Raketa
{
GameTextForPlayer(i, "~y~Houhouhou skuska", 5000, 5);
printf("Vitajvbanke");
}
else
{
if (PlayerToPoint(2, i,1456.3907,1789.6250,255.0039)) //asd
{
GameTextForPlayer(i, "~y~asd", 5000, 5);
printf("asd");
}
}
}
}
return 1;
}
pawn Код:
public CustomPickups()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (PlayerToPoint(3, i,2026.4064,1017.9352,10.8203)) // Bank
{
GameTextForPlayer(i, "~y~Vitaj v ~y~Banke~n~~w~Napis /enterbank aby si vosiel dnu", 5000, 5);
printf("Vitajvbanke");
}
else if (PlayerToPoint(2, i,1315.3907,1436.6250,55.0039)) //Raketa
{
GameTextForPlayer(i, "~y~Houhouhou skuska", 5000, 5);
printf("Vitajvbanke");
}
else if (PlayerToPoint(2, i,1456.3907,1789.6250,255.0039)) //asd
{
GameTextForPlayer(i, "~y~asd", 5000, 5);
printf("asd");
}
}
return 1;
}


