13.04.2013, 02:34
Код:
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
- 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
- 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")
or simply at @http://forum.sa-mp.com/showthread.ph...59#post1327459