HELP me ASAP!
#1

Код:
D:\SAMP\rp\pawno\include\streamer.inc(348) : error 017: undefined symbol "Streamer_OnPlayerEditObject"
D:\SAMP\rp\gamemodes\ggrpnew.pwn(104) : error 021: symbol already defined: "Time"
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4505) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4505) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4505) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4505) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4512) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4512) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4512) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4512) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4519) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4519) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4519) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4519) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4528) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4528) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4528) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4528) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4542) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4542) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4542) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4542) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4549) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4549) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4549) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4549) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4553) : error 017: undefined symbol "GivePlayerCash"
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4556) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4556) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4556) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4556) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4572) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4572) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4572) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4572) : warning 202: number of arguments does not match definition
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4677) : error 076: syntax error in the expression, or invalid function call
D:\SAMP\rp\gamemodes\ggrpnew.pwn(4760) : error 017: undefined symbol "GivePlayerCash"
D:\SAMP\rp\gamemodes\ggrpnew.pwn(5848) : error 012: invalid function call, not a valid address
D:\SAMP\rp\gamemodes\ggrpnew.pwn(5848) : warning 215: expression has no effect
D:\SAMP\rp\gamemodes\ggrpnew.pwn(5848) : error 001: expected token: ";", but found ")"
D:\SAMP\rp\gamemodes\ggrpnew.pwn(5848) : error 029: invalid expression, assumed zero
D:\SAMP\rp\gamemodes\ggrpnew.pwn(5848) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase




9 Errors.
Line Giveplayercash
Код:
stock StopRefueling(playerid)
{
	GivePlayerCash(playerid, -RefuelingVehiclePrice[playerid]);
	SendFormattedMessage(playerid, COLOR_WHITE,"Tangki kendaraan anda sudah terisi seharga %s.", FormatMoney(RefuelingVehiclePrice[playerid]));

	RefuelingVehicle[playerid] = 0; RefuelingVehiclePrice[playerid] = 0; KillTimer(RefuelingVehicleTimer[playerid]);
	return true;
}
line 5848
Код:
ExecuteNOPAction(playerid)
{
	new string[128];
	new newcar = GetPlayerVehicleID(playerid);
	if(NOPTrigger[playerid] >= MAX_NOP_WARNINGS) { return 1; }
	NOPTrigger[playerid]++;
	RemovePlayerFromVehicle(playerid);
	new Float:X, Float:Y, Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	SetPlayerPos(playerid, X, Y, Z+2);
	NOPCheck(playerid);                                   //(line 5848)
	if(NOPTrigger[playerid] > 1)
	{
		new sec = (NOPTrigger[playerid] * 5000)/1000-1;
		format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may be NOP hacking - restricted vehicle (model %d) for %d seconds.", GetPlayerNameEx(playerid), playerid, GetVehicleModel(newcar),sec);
		ABroadCast(COLOR_YELLOW, string, 2);
	}
	return
Line 104
Код:
new Text:Time, Text:Date;
Line 4677
Код:
public settime(playerid)
{
new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
TextDrawSetString(Date, string);
format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
TextDrawSetString(Time, string);
if(hours == 9 && minutes == 30 || hours == 15)
{
MoveDynamicObject(pizzagate1, 2119.4224, -1762.6011, 7.9578, 2);
MoveDynamicObject(pizzagate2, 2114.2544, -1762.6205, 7.9616, 2);
StockPizza = 100;
format(string, sizeof(string), "Pizza: %d/500.\n((/getpizza))", StockPizza);
UpdateDynamic3DTextLabelText(pickuppizza, COLOR_YELLOW, string);
}
if(hours == 13 || hours == 19)
{
MoveDynamicObject(pizzagate1, 2119.42236, -1762.60107, 13.63826, 2);
MoveDynamicObject(pizzagate2, 2114.25439, -1762.62048, 13.63826, 2);
}
}
Reply
#2

senang sja ni (my)

bg aq pwn kau tu kt pastebin, msg aq. nnti aq buat arrays dia
Reply
#3

- Line 104: You already have Time defined somewhere, use ctrl+f to find it.
- GivePlayerCash should be GivePlayerMoney.
- You didn't show us NOPCheck
- You didn't show us most of your code for the rest of the errors, we can't guess it.
Reply
#4

ok sir
Reply
#5

NOPCheck ? hmm i dont have the stock.
Reply
#6

here is line 4677
public settime(playerid)
{
new string[256],year,month,day,hours,minutes,seconds;
getdate(year, month, day), gettime(hours, minutes, seconds);
format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
TextDrawSetString(Date, string);
format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
TextDrawSetString(Time, string);
if(hours == 9 && minutes == 30 || hours == 15)
{
MoveDynamicObject(pizzagate1, 2119.4224, -1762.6011, 7.9578, 2);
MoveDynamicObject(pizzagate2, 2114.2544, -1762.6205, 7.9616, 2);
StockPizza = 100;
format(string, sizeof(string), "Pizza: %d/500.\n((/getpizza))", StockPizza);
UpdateDynamic3DTextLabelText(pickuppizza, COLOR_YELLOW, string);
}
if(hours == 13 || hours == 19)
{
MoveDynamicObject(pizzagate1, 2119.42236, -1762.60107, 13.63826, 2);
MoveDynamicObject(pizzagate2, 2114.25439, -1762.62048, 13.63826, 2);
}
}
Reply
#7

BUMP
Reply
#8

add this

pawn Код:
ExecuteNOPAction(playerid)
{
    new string[128];
    new newcar = GetPlayerVehicleID(playerid);
    if(NOPTrigger[playerid] >= MAX_NOP_WARNINGS) { return 1; }
    NOPTrigger[playerid]++;
    RemovePlayerFromVehicle(playerid);
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z+2);
    NOPCheck(playerid);
    if(NOPTrigger[playerid] > 1)
    {
        new sec = (NOPTrigger[playerid] * 5000)/1000-1;
        format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may be NOP hacking - restricted vehicle (model %d) for %d seconds.", GetPlayerNameEx(playerid), playerid, GetVehicleModel(newcar),sec);
        ABroadCast(COLOR_YELLOW, string, 2);
    }
    return 1;
}
Reply
#9

Thanks dude , it's works now just line 4677
Reply
#10

bagi lines kau tu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)