Help Newbie with 3 warnings
#1

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;
}
Reply
#2

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

SetPlayerPos(playerid, -348.2215,1528.1942,75.7176);
Reply
#3

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;
}
Reply
#4

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;
Reply
#5

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

Mean Thanks i fixed that problem ^^
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)