Stalno isti error

Započeo Quality Samp, Avgust 07, 2011, 17:35:43 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Nedavno sam poceo novi gamemod
i kada sam napravio da tako kazem "kostur-osnovu svega"
poceo da ubacujem anticheat
prvo sam ubacio odnosno pokusao ubaciti money anticheat i on radi
al se pojavio drugi problam
naime koristi ladmin FS
on sprema sve moguce informacije o igracu
eh posto sprema i novac..tu nastaje problem
naravno anticheat me nece banovati nego samo vrati novac na pocetno stanje odnosno na onu vrijednost koja je u userfajlu

dakle
ladmin fs ucita novac a anticheat ga vrati na staro ... 0
pa sam u gamemodu napisao :



   if(ServerInfo[GiveMoney] == 1)
          {
            PlayerInfo[playerid][TimesSpawned]++;
            if(PlayerInfo[playerid][TimesSpawned] == 1)
            {
               ResetPlayerMoney(playerid);
               SafeGivePlayerMoney(playerid, dUserINT(PlayerName2(playerid)).("money") );
            
            }
         }

      return 1;
   }


PlayerName2 je definisano kao ladmin/users/%s.sav
dakle da gamemod ucita novac da anticheat nebi djelovao
ovo SafeGivePlayerMoney ...to je dio anticheata...ustvari GivePlayerMoney
ali ovo zbog "Safe" anticheat nece vracati na 0...
i kada kompajlujem  desi se ovo:



C:\Documents and Settings\almir\Desktop\gangovi\gamemodes\GangWars.pwn(1378) : warning 213: tag mismatch
C:\Documents and Settings\almir\Desktop\gangovi\gamemodes\GangWars.pwn(1379) : warning 213: tag mismatch
C:\Documents and Settings\almir\Desktop\gangovi\gamemodes\GangWars.pwn(1382) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\almir\Desktop\gangovi\gamemodes\GangWars.pwn(1382) : warning 215: expression has no effect
C:\Documents and Settings\almir\Desktop\gangovi\gamemodes\GangWars.pwn(1382) : warning 215: expression has no effect
C:\Documents and Settings\almir\Desktop\gangovi\gamemodes\GangWars.pwn(1382) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\almir\Desktop\gangovi\gamemodes\GangWars.pwn(1382) : error 029: invalid expression, assumed zero
C:\Documents and Settings\almir\Desktop\gangovi\gamemodes\GangWars.pwn(1382) : fatal error 107: too many error messages on one line

svi errori su na liniji
1382    SafeGivePlayerMoney(playerid, dUserINT(PlayerName2(playerid)).("money") );   
pa vas pitam dali mi neko moze ovo napisati kako treba da bi znao za ubuduce ili da mi kaze u cemu je problem
na jeziku koji svi razumijemo

Mikic95

Prvo pročitaj pravila ovog podforuma, pa onda otvori temu.