07.11.2009, 17:38
Quote:
Originally Posted by MadeMan
pawn Код:
|
i only got 1 error.
C:\Users\Onno\Documents\ALLIN1\da\gamemodes\saa.pw n(321) : warning 209: function "OnPlayerCommandText" should return a value
C:\Users\Onno\Documents\ALLIN1\da\gamemodes\saa.pw n(322) : error 010: invalid function or declaration
if(strcmp("/car1", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new Float, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
new car = CreateVehicle(415, x, y, z, angle, -1, -1, 600);
PutPlayerInVehicle(playerid, car, 0);
}
return 1;
}
}
return 0; <--322
}