Warnings
#1

Can Someone Help me fixing these warnings please ?
Код:
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(13353) : warning 202: number of arguments does not match definition
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(13362) : warning 202: number of arguments does not match definition
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(13371) : warning 202: number of arguments does not match definition
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31729) : warning 213: tag mismatch
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31730) : warning 213: tag mismatch
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31730) : warning 202: number of arguments does not match definition
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31731) : warning 213: tag mismatch
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31732) : warning 213: tag mismatch
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31732) : warning 202: number of arguments does not match definition
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31733) : warning 213: tag mismatch
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31734) : warning 213: tag mismatch
C:\Users\mohamed\Desktop\VGRP\gamemodes\VGRP.pwn(31734) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Warnings.
pawn Код:
IsAtTurnInPoint(playerid)
{
    new string[128];
   
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0,240.8950,112.7382,1003.2188,270.1587)) // Line13353
        {//LAPD
            if(PlayerInfo[playerid][pWantedLevel] >= 1)
            {
                format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station!(LAPD)", GetPlayerNameEx(playerid));
                SendRadioMessage(1, DEPTRADIO, string);
            }
            return 1;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 4.0, 2531.3040,-1659.8525,562.8000,104.7559)) Line 13362
        {//LASD
            if(PlayerInfo[playerid][pWantedLevel] >= 1)
            {
                format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station(LASD)!", GetPlayerNameEx(playerid));
                SendRadioMessage(7, DEPTRADIO, string);
            }
            return 1;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 3.0,234.9487,165.0764,1003.0300,80.0004)) Line 13371
        {//LVMPD
            if(PlayerInfo[playerid][pWantedLevel] >= 1)
            {
                format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station(LVMPD)!", GetPlayerNameEx(playerid));
                SendRadioMessage(19, DEPTRADIO, string);
            }
            return 1;
        }
    }
    return 0;
}
From Line 31729:31734
pawn Код:
CreateDynamic3DTextLabel("/turnin",COLOR_DBLUE, 240.8950, 112.7382, 1003.2188, 270.1587,4.0);///turnin(LAPD)
    CreatePickup(1247, 23, 240.8950, 112.7382, 1003.2188, 270.1587, -1); // LAPD Turnin
    CreateDynamic3DTextLabel("/turnin",COLOR_DBLUE, 2531.3040, -1659.8525,562.8000, 104.7559,4.0);///turnin(LASD)
    CreatePickup(1247, 23, 2531.3040, -1659.8525, 562.8000, 104.7559, -1); // LASD Turnin
    CreateDynamic3DTextLabel("/turnin",COLOR_DBLUE, 234.9487, 165.0764, 1003.0300, 80.0004,4.0);///turnin(LVMPD)
    CreatePickup(1247, 23, 234.9487, 165.0764, 1003.0300, 80.0004, -1); // LVMPD Turnin
Reply
#2

You don't have to pass rotation, only X, Y and Z coordinates, likeso:
pawn Код:
//not
if(IsPlayerInRangeOfPoint(playerid, 3.0,240.8950,112.7382,1003.2188,270.1587))
//but
if(IsPlayerInRangeOfPoint(playerid, 3.0,240.8950,112.7382,1003.2188))
Reply
#3

IsAtTurnInPoint(playerid)
{
new string[128];

if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,240.8950,112.7382,1003.218) // Line13353
{//LAPD
if(PlayerInfo[playerid][pWantedLevel] >= 1)
{
format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station!(LAPD)", GetPlayerNameEx(playerid));
SendRadioMessage(1, DEPTRADIO, string);
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 4.0, 2531.3040,-1659.8525,562.8000)) Line 13362
{//LASD
if(PlayerInfo[playerid][pWantedLevel] >= 1)
{
format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station(LASD)!", GetPlayerNameEx(playerid));
SendRadioMessage(7, DEPTRADIO, string);
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0,234.9487,165.0764,1003.0300)) Line 13371
{//LVMPD
if(PlayerInfo[playerid][pWantedLevel] >= 1)
{
format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station(LVMPD)!", GetPlayerNameEx(playerid));
SendRadioMessage(19, DEPTRADIO, string);
}
return 1;
}
}
return 0;
}





TRY THIS!
Reply
#4

Quote:
Originally Posted by Gilbonzo
Посмотреть сообщение
IsAtTurnInPoint(playerid)
{
new string[128];

if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,240.8950,112.7382,1003.218) // Line13353
{//LAPD
if(PlayerInfo[playerid][pWantedLevel] >= 1)
{
format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station!(LAPD)", GetPlayerNameEx(playerid));
SendRadioMessage(1, DEPTRADIO, string);
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 4.0, 2531.3040,-1659.8525,562.8000)) Line 13362
{//LASD
if(PlayerInfo[playerid][pWantedLevel] >= 1)
{
format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station(LASD)!", GetPlayerNameEx(playerid));
SendRadioMessage(7, DEPTRADIO, string);
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0,234.9487,165.0764,1003.0300)) Line 13371
{//LVMPD
if(PlayerInfo[playerid][pWantedLevel] >= 1)
{
format(string, sizeof(string), "%s is a wanted individual, and is surrendering at your station(LVMPD)!", GetPlayerNameEx(playerid));
SendRadioMessage(19, DEPTRADIO, string);
}
return 1;
}
}
return 0;
}





TRY THIS!
Dude, put it in either [pawn] brackets or [code] brackets
Reply
#5

A'ight ,i've fixed the first three warns ,now i got 9 warnings.
Edit:I Fixed it ,thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)