[POMOC]AntiMoneyHack

Započeo WilliamS, Jun 13, 2013, 20:49:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moja Filescripta
Deteljan opis problema:Pa imam problem kako da kreiram public OnPlayerUpdate,posto radim Anti Cheat.
Deo Skripte:Pa ja sam to ovako stavio //OnPlayerUpdate
public OnPlayerUpdate (playerid,forplayerid);

if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pNovac] != GetPlayerMoney(playerid))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PI[playerid][pNovac]);
SendClientMessage(playerid, -1, "Nemojte koristiti cheat!");
}
}
Al mi i baca 3 errora C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(217) : error 025: function heading differs from prototype
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(219) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(221) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
[/b]

Kako to da resim..


Respect:ColdPlay,Artie,dnjl.

Citat: WilliamS poslato Jun 13, 2013, 20:49:45 POSLE PODNE
Skripta koju koristim:Moja Filescripta
Deteljan opis problema:Pa imam problem kako da kreiram public OnPlayerUpdate,posto radim Anti Cheat.
Deo Skripte:Pa ja sam to ovako stavio //OnPlayerUpdate
public OnPlayerUpdate (playerid,forplayerid);

if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pNovac] != GetPlayerMoney(playerid))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PI[playerid][pNovac]);
SendClientMessage(playerid, -1, "Nemojte koristiti cheat!");
}
}
Al mi i baca 3 errora C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(217) : error 025: function heading differs from prototype
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(219) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(221) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
[/b]

Kako to da resim..
bez ovoga "forplayerid"
public OnPlayerUpdate(playerid)


[FS]Rent
[FS] Vremenska prognoza
[TuT] PayDay
[TuT]PayDay sistem[UPDATED]
Moja Biografija

Respect:Mr.Gagi,FlasH,Streetboy,David (Sabljak) A.k.A SABO(T)
ÄŒovjek nije stvoren za poraze, moze biti unisten, ali ne i pobjeÄ'en!

Ali opet imam 2 errora C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(219) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(221) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


Respect:ColdPlay,Artie,dnjl.

A evo je linija 219 if(IsPlayerConnected(playerid) a ovo sam i stavljao kao i if(IsPlayerConnected(playerid)) ali opet isto a druga linija if(PlayerInfo[playerid][pNovac] != GetPlayerMoney(playerid)) Ovde baca isto


Respect:ColdPlay,Artie,dnjl.


public OnPlayerUpdate(playerid);
{
        if(IsPlayerConnected(playerid))
        {
          if(PlayerInfo[playerid][pNovac] > GetPlayerMoney(playerid))
          {
          ResetPlayerMoney(playerid);
          GivePlayerMoney(playerid, PlayerInfo[playerid][pNovac]);
          SendClientMessage(playerid, -1, "Nemojte koristiti cheat!");
          }
                  else
                  {
                                 
                  }
        }
        return 1;
}

pokusaj,nisam siguran!


[FS]Rent
[FS] Vremenska prognoza
[TuT] PayDay
[TuT]PayDay sistem[UPDATED]
Moja Biografija

Respect:Mr.Gagi,FlasH,Streetboy,David (Sabljak) A.k.A SABO(T)
ÄŒovjek nije stvoren za poraze, moze biti unisten, ali ne i pobjeÄ'en!

Sad imam 6 errora C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(219) : error 055: start of function body without function header
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(220) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(222) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(228) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(231) : error 054: unmatched closing brace ("}")
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(233) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


Respect:ColdPlay,Artie,dnjl.

Citat: WilliamS poslato Jun 13, 2013, 21:11:50 POSLE PODNE
Sad imam 6 errora C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(219) : error 055: start of function body without function header
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(220) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(222) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(228) : error 010: invalid function or declaration
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(231) : error 054: unmatched closing brace ("}")
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(233) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

aj ti meni rade daj cijeli onplayerupdate jer ovo nikamo ne vodi..


[FS]Rent
[FS] Vremenska prognoza
[TuT] PayDay
[TuT]PayDay sistem[UPDATED]
Moja Biografija

Respect:Mr.Gagi,FlasH,Streetboy,David (Sabljak) A.k.A SABO(T)
ÄŒovjek nije stvoren za poraze, moze biti unisten, ali ne i pobjeÄ'en!

Evo ti ga celi //OnPlayerUpdate
public OnPlayerUpdate (playerid,forplayerid);

if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pNovac] != GetPlayerMoney(playerid))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PI[playerid][pNovac]);
SendClientMessage(playerid, -1, "Nemojte koristiti cheat!");
}
}
Nema nista osim ovog


Respect:ColdPlay,Artie,dnjl.

//OnPlayerUpdate
public OnPlayerUpdate (playerid,forplayerid);
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pNovac] != GetPlayerMoney(playerid))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PI[playerid][pNovac]);
SendClientMessage(playerid, -1, "Nemojte koristiti cheat!");
}
   return 0;
}


Probaj ovako
Poslednja Izmena: Jun 13, 2013, 21:49:10 POSLE PODNE od PeMPaCâ„¢

Citat: PeMPaCâ,,¢ poslato Jun 13, 2013, 21:48:32 POSLE PODNE
//OnPlayerUpdate
public OnPlayerUpdate (playerid,forplayerid);
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pNovac] != GetPlayerMoney(playerid))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PI[playerid][pNovac]);
SendClientMessage(playerid, -1, "Nemojte koristiti cheat!");
}
   return 0;
}


Probaj ovako

Sad imam 5 errora Ono moje prvo ima najmanje errora al opet ima 3


Respect:ColdPlay,Artie,dnjl.

Ev



public OnPlayerUpdate(playerid)
{
if(PlayerInfo[playerid][pNovac] != GetPlayerMoney(playerid))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pNovac]);
SendClientMessage(playerid, -1, "Nemojte koristiti cheat!");
}
        return 1;
}

Skriptam za pare

4 errora ono moje prvo je imalo 3 errora al ne znam koja :/


Respect:ColdPlay,Artie,dnjl.

BUMP


Respect:ColdPlay,Artie,dnjl.

Sad mi bacca 4 errora C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(220) : error 017: undefined symbol "PlayerInfo"
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(220) : warning 215: expression has no effect
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(220) : error 001: expected token: ";", but found "]"
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(220) : error 029: invalid expression, assumed zero
C:\Users\Salipur\Desktop\Course RolePlay FileScripte\filterscripts\AntiMoneyHack.pwn(220) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Respect:ColdPlay,Artie,dnjl.

Da radim u fileskripti pa kako da stavim?


Respect:ColdPlay,Artie,dnjl.