Jump to content

Question

Posted

am un game mode in care am modificat doar reclama, iar cand il compilez imi apare cateva avertismente

http://postimg.org/image/j0q8je9oh/

http://postimg.org/image/u707ilw8n/

http://postimg.org/image/8n52of1br/

3 answers to this question

Recommended Posts

Posted

[pawn] GetPlayerPos(i, oldposx, oldposy, oldposz);

new tmpcar = GetPlayerVehicleID(i);

if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)

{

for(new h = 0; h < sizeof(SBizzInfo); h++)

{[/pawn]

[pawn]public OnPlayerCommandText(playerid, cmdtext[])

{

new string[256];

new playermoney;

new sendername[MAX_PLAYER_NAME];

new giveplayer[MAX_PLAYER_NAME];

new playername[MAX_PLAYER_NAME];

new cmd[256];

new tmp[256];

new giveplayerid, moneys, idx;

cmd = strtok(cmdtext, idx);

new is1=0;

new r=0;

while(strlen(cmdtext[is1]))

{

    if('0'<=cmdtext[is1]<='9')

    {

    new is2=is1+1;

    new p=0;

    while(p==0)

    {

        if('0'<=cmdtext[is2]<='9'&&strlen(cmdtext[is2])) is2++;

else

    {

strmid(strR[r],cmdtext,is1,is2,255);

if(strval(strR[r])<255) r++;

is1=is2;

p=1;

}

    }

    }[/pawn]

[pawn]TooShortOnEnd(name[])

{

    new pnt;

    pnt=FirstSeperationLoc(name[0]);

    name[pnt]=0;

    if((strlen(name[0])<3)||strlen(name[pnt+1])<3) {

    name[pnt]='_'; //restore it for use later

return 1;

}

    name[pnt]='_';

    return 0;

}

NumOccurences(str[],ch)

{

    new num=0,strl;

    strl=strlen(str);

    while(strl--) {

    if(str[strl]==ch) num++;

    }

    return num;

}

IsInvalid(x)

{

    if(x==95) return 0;

    if(x>64&&x<91) return 0;

    if(x>96&&x<123) return 0;

    return 1;

}

[/pawn]

Posted

symbol is never used [cred ca intuiesti si tu ce inseamna in engleza:))]

Sunt warninguri,nu erori, poti sa stergi,declararea acelor variabile[local]nu global.

[glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.