stock GetPlayerRang(playerid)
{
new lvl[32+1];
switch(pInfo[playerid][rang])
{
if(pInfo[playerid][frakcio] == 0) return lvl = \"-\";
if(pInfo[playerid][frakcio] == 1)
{
case 1: lvl = \"Kadét\";
case 2: lvl = \"Õrmester\";
case 3: lvl = \"Zászlós\";
case 4: lvl = \"Hadnagy\";
case 5: lvl = \"Ezredes\";
case 6: lvl = \"Tábornok\");
}
if(pInfo[playerid][frakcio] == 2)
{
case 1: lvl = \"Ápoló\";
case 2: lvl = \"a\";
case 3: lvl = \"a\";
case 4: lvl = \"a\";
case 5: lvl = \"a\";
case 6: lvl = \"a\";
}
if(pInfo[playerid][frakcio] == 3)
{
case 1: lvl = \"a\";
case 2: lvl = \"a\";
case 3: lvl = \"a\";
}
if(pInfo[playerid][frakcio] == 4)
{
case 1: lvl = \"a\";
case 2: lvl = \"a\";
case 3: lvl = \"a\";
}
}
return lvl;
}
Nem értem, hogy ebbe mi a hiba?
error 010: invalid function or declaration
erre
return lvl;