Jump to content
  • 0

pomoc HITMAN SYSTEM-Lock


Guest F7773

Dotaz

cawte :) ... píšu to sem ptze tutorial na hitman byl locknut viewtopic.php?f=8&t=598&st=0&sk=t&sd=a&hilit=hitman+system" onclick="window.open(this.href);return false;

 

Tak se chci zeptat u toho tutorialu na co je tady tohle to jsem nejak nepochopil...

 

moneys = strval(tmp);
if(moneys > GetPlayerMoney(playerid))
{
SendClientMessage(playerid, COLOR_RED, "Moneeeyyy!");
return 1;
}

if(moneys < 1)
{
SendClientMessage(playerid, COLOR_YELLOW, ":) no no .");
return 1;
}

 

No a tohle ještě sem nepochopil omlouvam se sem novaček

 

if(strcmp(cmd, "/bounties", true) == 0)
{
new x;
SendClientMessage(playerid, COLOR_GREEN, "Vypsane odměny:");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && bounty[i] > 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%s%s(%d): $%d", string,giveplayer,i,bounty[i]);

x++;
if(x > 3)
{
SendClientMessage(playerid, COLOR_YELLOW, string);
x = 0;
format(string, sizeof(string), " "); // a k čemu slouží tady tohle pls
}
else
{
format(string, sizeof(string), "%s, ", string); //Co je tady tohle?
}
}
}
if(x <= 3 && x > 0)
{
string[strlen(string)-2] = '.';
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

Neboj každej začinal i ja sem stale nováček :)

 

 

format(string, sizeof(string), " "); // a k čemu slouží tady tohle pls

 

o tomhle si myslim že je jen jako "když tam neni nikdo nikdo nikoho nehitmanuje"...a ten přikaz dole SendClientMessage ten to vypiše ten string

 

a tohle:

format(string, sizeof(string), "%s, ", string); //Co je tady tohle?

To je podle mě jméno hráče... ;)viz kousek vejž nad tim :)

giveplayer,i,bounty); =) ahoj

 

 

Dobrou noc pawno is closed to 10:00 for me :-D bye bye

Link to comment
Share on other sites

  • 0

zkus nahoru nahazet všechny includy a řekni nam errory :) a jestli jsou to jen tyhle tak pisni ale ja už fakt du čaw

 

C:\DOCUME~1\Mach37\LOCALS~1\Temp\thenewworld.pwn(126) : error 012: invalid function call, not a valid address
C:\DOCUME~1\Mach37\LOCALS~1\Temp\thenewworld.pwn(126) : warning 215: expression has no effect
C:\DOCUME~1\Mach37\LOCALS~1\Temp\thenewworld.pwn(126) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Mach37\LOCALS~1\Temp\thenewworld.pwn(126) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Mach37\LOCALS~1\Temp\thenewworld.pwn(126) : 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.

Link to comment
Share on other sites

  • 0

Všechny includy? a to pomuže jak? podle mě tam mám nejak spatne definice new tmp atd a zavorky ae nemužu přijid na to jak to spravit...zkousel sem to po přehazet nak ae vubec jen vice erroru xD

Link to comment
Share on other sites

  • 0

To jsou rady... :d Jakej máš problem... Pošli erory a řádky BTW: mych37 ten první příspěvek.

moneys = strval(tmp);
if(moneys > GetPlayerMoney(playerid))
{
SendClientMessage(playerid, COLOR_RED, "Moneeeyyy!");
return 1;
}

if(moneys < 1)
{
SendClientMessage(playerid, COLOR_YELLOW, ":) no no .");
return 1;
}

Já tady nikde nevidím že by ti to přišetlo peníze... Přičtení peněz je snad GivePlayerMoney to tady nevidím :wtf: TOTO podle mě zjistí kolik máš penez a pak ti to podle toho napíše zpravu Když tak mě opravte je možný že se pletu :wtf:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...