SA-MP Forums Archive
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)
+--- Thread: warnings (/showthread.php?tid=279360)



warnings - Chris_Morrison - 26.08.2011

i did it

pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
{
    if(PlayerToPointStripped(2, playerid,238.5380,139.0598,1003.0234))
    {
        SetPlayerPos(playerid,2795.4570,-1619.4171,10.9219)
        SetPlayerInterior(playerid, 3);
    }
    return 1;
}
and i got 3 warnings
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26909) : warning 202: number of arguments does not match definition
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26909) : warning 202: number of arguments does not match definition
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26909) : warning 202: number of arguments does not match definition
What to do?


Re: warnings - Jantjuh - 26.08.2011

warning 202: number of arguments does not match definition

This ^ means that the amount of parameters of one of your function/callback/statement isn't in order.

Check all the parameters of your functions, callbacks and statements.

succes!

PS: Hope you got me


Re: warnings - Dragony92 - 26.08.2011

PlayerToPointStripped(Float:radi, playerid, Float:x, Float:y, Float:z, Float:curx, Float:cury, Float:curz)
pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,2,238.5380,139.0598,1003.0234))
    {
        SetPlayerPos(playerid,2795.4570,-1619.4171,10.9219)
        SetPlayerInterior(playerid, 3);
    }
    return 1;
}



Re: warnings - Chris_Morrison - 26.08.2011

Quote:
Originally Posted by Dragony92
Посмотреть сообщение
PlayerToPointStripped(Float:radi, playerid, Float, Float:y, Float:z, Float:curx, Float:cury, Float:curz)
pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid,2,238.5380,139.0598,1003.0234))
    {
        SetPlayerPos(playerid,2795.4570,-1619.4171,10.9219)
        SetPlayerInterior(playerid, 3);
    }
    return 1;
}
Thank you very much!


Re: warnings - Kingunit - 26.08.2011

Just a tip. Can't you stick into the same topic? I saw three difference topics from you about the same part of code ...