17.03.2009, 14:36
Quote:
|
Originally Posted by Rav
Lots of things wrong with that too.. for example, why do you read from a file you only need to write to? Why aren't you looping through all the available vehicles? Why do you try to write to a file when it's opened in io_read mode (that only allows reading a file..)? Why do you close a the file handler when you need it later on in the loop?
Try looking at some tutorials first |
ohh and I tried doing lie you said by checking the Vehicle Pos instead of the PlayerPos
I get this:
Код:
C:\Documents and Settings\User\Desktop\SAMP GameMode\filterscripts\VOS.pwn(233) : error 028: invalid subscript (not an array or too many subscripts): "X" C:\Documents and Settings\User\Desktop\SAMP GameMode\filterscripts\VOS.pwn(233) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\SAMP GameMode\filterscripts\VOS.pwn(233) : error 001: expected token: ";", but found "]" C:\Documents and Settings\User\Desktop\SAMP GameMode\filterscripts\VOS.pwn(233) : error 029: invalid expression, assumed zero C:\Documents and Settings\User\Desktop\SAMP GameMode\filterscripts\VOS.pwn(233) : fatal error 107: too many error messages on one line
pawn Код:
if(strcmp(cmdtext, "/park", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vID = GetPlayerVehicleID(playerid);
new Float:X, Float:Y, Float:Z, Float:A;
GetVehiclePos(vID, X[vID], Y[vID], Z[vID]);
GetVehicleZAngle(vID, A[vID]);
vehX = X;
vehY = Y;
vehZ = Z;
vehAng = A;
SaveCars();
}
return 1;
}

