[Jamper]
Компетентный
PHP:
public FishCost(playerid, fish)
{
if(IsPlayerConnected(playerid))
{
new cost = 0;
switch (fish)
{
case 1:
{
cost = 1;
}
case 2:
{
cost = 3;
}
case 3:
{
cost = 3;
}
case 5:
{
cost = 5;
}
case 6:
{
cost = 2;
}
case 8:
{
cost = 8;
}
case 9:
{
cost = 12;
}
case 11:
{
cost = 9;
}
case 12:
{
cost = 7;
}
case 14:
{
cost = 12;
}
case 15:
{
cost = 9;
}
case 16:
{
cost = 7;
}
case 17:
{
cost = 7;
}
case 18:
{
cost = 10;
}
case 19:
{
cost = 4;
}
case 21:
{
cost = 3;
}
}
return cost;
}
return 0;
}
---------- Post added at 15:57 ---------- Previous post was at 15:23 ----------
вверх
