SA-MP Forums Archive
Help Newbie with 3 warnings - 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 Newbie with 3 warnings (/showthread.php?tid=246283)



Help Newbie with 3 warnings - Immortal_LTU - 03.04.2011

I have 3 warrnings :

C:\Users\Jarek\Desktop\Lukasza Files\World Of Drift v1.0\gamemodes\World-Of-Drift.pwn(2147) : warning 202: number of arguments does not match definition

C:\Users\Jarek\Desktop\Lukasza Files\World Of Drift v1.0\gamemodes\World-Of-Drift.pwn(2153) : warning 202: number of arguments does not match definition

C:\Users\Jarek\Desktop\Lukasza Files\World Of Drift v1.0\gamemodes\World-Of-Drift.pwn(2160) : warning 217: loose indentation

1 warning line : SetPlayerPos(playerid, 1486.4894,2769.9453,16.2628,272.9416);

2 warning line : SetPlayerPos(playerid, -348.2215,1528.1942,75.7176,261.4001);

3 warning line : return 1;

All Script

if(dialogid == 258)
{
if(!response)
{
ShowPlayerDialog(playerid, 258, DIALOG_STYLE_LIST,"Pasirinkite Spawn'a", "Las Venturas\nBig Ear", "Pasirinkti", "Uюdaryti");
}
else if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid, 1486.4894,2769.9453,16.2628,272.9416);
SendClientMessage(playerid,0xE60000FF, "Jus pasirinkote Las Venturas spawn'a. Gero zaidimo!");
}

if(listitem == 1)
{
SetPlayerPos(playerid, -348.2215,1528.1942,75.7176,261.4001);
SendClientMessage(playerid,0xE60000FF, "Jus pasirinkote Big Ear spawn'a. Gero zaidimo!");
}

}
return 1;
}
return 1;
}


Re: Help Newbie with 3 warnings - RenisiL - 03.04.2011

Код:
SetPlayerPos(playerid, 1486.4894,2769.9453,16.2628);

SetPlayerPos(playerid, -348.2215,1528.1942,75.7176);



Re: Help Newbie with 3 warnings - Mean - 03.04.2011

Third warning:
pawn Код:
// Bad indented code
CMD:something( playerid, params[ ] )
  {
 SendClientMessage( playerid, 0xAAAAAA, "Hello" );
      SendClientMessage( playerid, 0xAAAAAA, "there. " );
return 1;
}
Meaning your code isn't sorted well, correct indenting:
pawn Код:
CMD:something( playerid, params[ ] )
{
    SendClientMessage( playerid, 0xAAAAAA, "Hello" );
    SendClientMessage( playerid, 0xAAAAAA, "there. " );
    return 1;
}



Re: Help Newbie with 3 warnings - Immortal_LTU - 03.04.2011

Thanks for answer it works but i got another warning ,but 2 already fixed

C:\Users\Jarek\Desktop\Lukasza Files\World Of Drift v1.0\gamemodes\World-Of-Drift.pwn(2161) : warning 217: loose indentation

Line : return 1;


Re: Help Newbie with 3 warnings - Mean - 03.04.2011

I just told you what is the problem with that warning ^^! Your code isn't placed well ( to the left or right ).


Re: Help Newbie with 3 warnings - Immortal_LTU - 03.04.2011

Mean Thanks i fixed that problem ^^