CMD:skiptut(playerid, params[]) { if(pInTut[playerid] == 1) { SetPlayerPos(playerid, -201.4800, 1121.3499, 19.7422); SetPlayerFacingAngle(playerid, 274.1669); SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to CityHall as the tutorial is bugged."); } else { SendClientMessage(playerid,COLOR_RED, "You are not in a tutorial that you can skip!"); } return 1;
CMD:skiptut(playerid, params[])
{
if(pInTut[playerid] == 1) {
SetPlayerPos(playerid, -201.4800, 1121.3499, 19.7422);
SetPlayerFacingAngle(playerid, 274.1669);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to CityHall as the tutorial is bugged.");
}
else return SendClientMessage(playerid,COLOR_RED, "You are not in a tutorial that you can skip!");
}
C:\Users\Jordan\Desktop\Windows\gamemodes\vx-rp.pwn(10842) : warning 209: function "cmd_skiptut" should return a value
CMD:skiptut(playerid, params[])
{
if ( pInTut[ playerid ] == 1) {
SetPlayerPos(playerid, -201.4800, 1121.3499, 19.7422);
SetPlayerFacingAngle(playerid, 274.1669);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to CityHall as the tutorial is bugged.");
}
else return SendClientMessage(playerid,COLOR_RED, "You are not in a tutorial that you can skip!");
return 1;
}
CMD:skiptut(playerid, params[])
{
if(pInTut[playerid] == 1)
{
SetPlayerPos(playerid, -201.4800, 1121.3499, 19.7422);
SetPlayerFacingAngle(playerid, 274.1669);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to CityHall as the tutorial is bugged.");
}
else
{
SendClientMessage(playerid,COLOR_RED, "You are not in a tutorial that you can skip!");
}
return 1;
}
Код:
C:\Users\Jordan\Desktop\Windows\gamemodes\vx-rp.pwn(10842) : warning 209: function "cmd_skiptut" should return a value |
CMD:skiptut(playerid, params[])
{
if (pInTut[playerid] == 1) {
SetPlayerPos(playerid, -201.4800, 1121.3499, 19.7422);
SetPlayerFacingAngle(playerid, 274.1669);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to CityHall as the tutorial is bugged.");
}
else return SendClientMessage(playerid,COLOR_RED, "You are not in a tutorial that you can skip!");
return 1;
}
CMD:skiptut(playerid, params[])
{
printf("pInTut = %d", pInTut[ playerid ] );
if ( pInTut[ playerid ] == 1) {
SetPlayerPos(playerid, -201.4800, 1121.3499, 19.7422);
SetPlayerFacingAngle(playerid, 274.1669);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to CityHall as the tutorial is bugged.");
}
else return SendClientMessage(playerid,COLOR_RED, "You are not in a tutorial that you can skip!");
return 1;
}