15.02.2013, 01:46
Here is something from the filterscript i am using where I have added the line
Added code:
Filterscript code:
Here's what I get..
What steps do I need to take in order for the FS to use my server side money?
What do you need to see in order to help me?
Added code:
Код:
PlayerInfo[i][pCash] -= cost;
Код:
if(RefuelTime[i] > 0 && GetPVarInt(i, "FuelStation")) { new vehicleid = GetPlayerVehicleID(i); Fuel[vehicleid] += 2.0; RefuelTime[i]--; if(RefuelTime[i] == 0) { if(Fuel[vehicleid] >= 100.0) Fuel[vehicleid] = 100.0; new stationid = GetPVarInt(i, "FuelStation"); new cost = floatround(Fuel[vehicleid]-GetPVarFloat(i, "Fuel"))*FUEL_PRICE; if(GetPlayerState(i) != PLAYER_STATE_DRIVER || Fuel[vehicleid] >= 100.0 || GetPlayerMoney(i) < cost || !IsPlayerInRangeOfPoint(i, 10.0, FuelStationPos[stationid][0], FuelStationPos[stationid][1], FuelStationPos[stationid][2])) { if(GetPlayerMoney(i) < cost) cost = GetPlayerMoney(i); PlayerInfo[i][pCash] -= cost; format(string, sizeof(string), "~r~-$%d", cost); GameTextForPlayer(i, string, 2000, 3); format(string, sizeof(string), "You pay $%d for fuel", cost); SendClientMessage(i, COLOR_WHITE, string); SetPVarInt(i, "FuelStation", 0); SetPVarFloat(i, "Fuel", 0.0); } else { RefuelTime[i] = 5; format(string, sizeof(string), "~w~refueling...~n~~r~-$%d", cost); GameTextForPlayer(i, string, 2000, 3); } } }
Код:
C:\Documents and Settings\Phil\Desktop\DFRP Server\filterscripts\avs.pwn(1079) : error 017: undefined symbol "PlayerInfo" C:\Documents and Settings\Phil\Desktop\DFRP Server\filterscripts\avs.pwn(1079) : warning 215: expression has no effect C:\Documents and Settings\Phil\Desktop\DFRP Server\filterscripts\avs.pwn(1079) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Phil\Desktop\DFRP Server\filterscripts\avs.pwn(1079) : error 029: invalid expression, assumed zero C:\Documents and Settings\Phil\Desktop\DFRP Server\filterscripts\avs.pwn(1079) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
What do you need to see in order to help me?