SA-MP Forums Archive
Help a bit :/ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help a bit :/ (/showthread.php?tid=223555)



Help a bit :/ - TheAlienForce - 09.02.2011

pawn Код:
if(PInfo[playerid][Stuntrank] = 0)
    {
        format(string,sizeof(string),"Newbie stunter");
        strmid(PInfo[playerid][Stuntrank], string, 0, strlen(string), 14);
        return 1;
    }
    if(PInfo[playerid][Stuntrank] == 1)
    {
        format(string,sizeof(string),"Amature racer");
        strmid(PInfo[playerid][Stuntrank],string,0,strlen(string),13);
        return 1;
    }
    if(PInfo[playerid][Stuntrank] == 2)
    {
        format(string,sizeof(string),"Advanced jumper");
        strmid(PInfo[playerid][Stuntrank], string, 0, strlen(string), 15);
        return 1;
    }
    if(PInfo[playerid][Stuntrank] == 4)
    {
        format(string,sizeof(string),"Professional stunter");
        strmid(PInfo[playerid][Stuntrank],string,0,strlen(string),20);
        return 1;
    }
    if(PInfo[playerid][Stuntrank] == 5)
    {
        format(string,sizeof(string),"Awesome Jumper!");
        strmid(PInfo[playerid][Stuntrank],string,0,strlen(string),15);
        return 1;
    }
But it appears weired in a cmd like
/myrank
then it sends
Rank: Btunte.
or
Rank: Atunte.


Re: Help a bit :/ - (SF)Noobanatior - 10.02.2011

why not just go
pawn Код:
format(PInfo[playerid][Stuntrank],sizeof(PInfo[playerid][Stuntrank]),"Professional stunter");
?


Re: Help a bit :/ - Mean - 10.02.2011

Eeeeuh... Why don't you just SendClientMessage?


Re: Help a bit :/ - Davz*|*Criss - 10.02.2011

Explain better please.