Help with my script please!
#3

Код:
C:\Users\\Desktop\TDM SERVER\gamemodes\VGTDM.pwn(177) : warning 202: number of arguments does not match definition
C:\Users\\Desktop\TDM SERVER\gamemodes\VGTDM.pwn(179) : warning 202: number of arguments does not match definition
- Number of arguments does not match definition
  • Cause: You got more or less arguments (couldn't say it in another way) than you actually got to have.
pawn Код:
CMD:centermap(playerid,params[])
{
    #pragma unused params
    SetPlayerPos(playerid,0.0,0.0,3.0,90.0); // We've put the angle here too 'by accident'
    SendClientMessage(playerid,-1,"You have been sent to the center of the map in Blue Berry.");
    return 1;
}
  • Fix: Look for the correct syntaxes for the function. SA-MP Wiki says SetPlayerPos only has 4 arguments; playerid, X, Y and Z. This means the angle shouldn't be in there
pawn Код:
CMD:centermap(playerid,params[])
{
    #pragma unused params
    SetPlayerPos(playerid,0.0,0.0,3.0);
    SetPlayerFacingAngle(playerid,90.0); // Correct is to put the angle into this function.
    SendClientMessage(playerid,-1,"You have been sent to the center of the map in Blue Berry.");
    return 1;
}
Код:
C:\Users\\Desktop\TDM SERVER\gamemodes\VGTDM.pwn(467) : warning 217: loose indentation
C:\Users\Desktop\TDM SERVER\gamemodes\VGTDM.pwn(471) : warning 217: loose indentation
- Loose Indentation
  • Cause: You got an unindented script
pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
    SendClientMessage(playerid,-1,"You have left a checkpoint.");
        print("Someone left a checkpoint");
    return 1;
}
  • Fix: Make sure your script is idented
pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
    SendClientMessage(playerid,-1,"You have left a checkpoint.");
    print("Someone left a checkpoint");
    return 1;
}
Код:
C:\Users\\Desktop\TDM SERVER\gamemodes\VGTDM.pwn(70) : warning 201: redefinition of constant/macro (symbol "COLOR_PURPLE")
They are already defined somewhere in your script and you're trying to re-define them

or simply at @http://forum.sa-mp.com/showthread.ph...59#post1327459
Reply


Messages In This Thread
Help with my script please! - by BigDee - 13.04.2013, 01:33
Re: Help with my script please! - by Giroud12 - 13.04.2013, 01:38
Re : Help with my script please! - by thegreathom - 13.04.2013, 02:34
Re: Re : Help with my script please! - by MP2 - 13.04.2013, 02:47
Re: Help with my script please! - by BigDee - 13.04.2013, 03:10
Re: Help with my script please! - by Ponii - 13.04.2013, 03:19
Re: Help with my script please! - by Scenario - 13.04.2013, 03:27
Re: Help with my script please! - by MP2 - 13.04.2013, 03:41

Forum Jump:


Users browsing this thread: 1 Guest(s)