01.03.2009, 00:22
:\Users\lamis\Desktop\servers\myserver\filterscrip ts\ball.pwn(131) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/Nrgball", true) == 0){
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522){
SendClientMessage(playerid, COLOR_RED, "Welcome to the ball");
SetVehiclePos(GetPlayerVehicleID(playerid), -1299.1689,-98.2901,14.9644);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 3.872666);
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
}
return 1;
}
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/Nrgball", true) == 0){
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522){
SendClientMessage(playerid, COLOR_RED, "Welcome to the ball");
SetVehiclePos(GetPlayerVehicleID(playerid), -1299.1689,-98.2901,14.9644);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 3.872666);
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
}
return 1;
}