Jump to content
  • 0

pomoc Onplayerkeystatechange


Bgurf

Dotaz

Zdravím mám tyhle chybné řádky

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_WALK){//L.ALT pro zaměstnání
if(job[playerid] == 1) return SendClientMessage(playerid, GREEN, "[** ERROR **] Zde už jsi zaměstnán!");

a chyba

D:\Documents and Settings\David\Plocha\Test.pwn(546) : error 029: invalid expression, assumed zero
D:\Documents and Settings\David\Plocha\Test.pwn(547) : error 001: expected token: ";", but found "{"
D:\Documents and Settings\David\Plocha\Test.pwn(549) : error 029: invalid expression, assumed zero
D:\Documents and Settings\David\Plocha\Test.pwn(549) : warning 215: expression has no effect
D:\Documents and Settings\David\Plocha\Test.pwn(549) : error 001: expected token: ";", but found ")"
D:\Documents and Settings\David\Plocha\Test.pwn(549) : error 029: invalid expression, assumed zero
D:\Documents and Settings\David\Plocha\Test.pwn(549) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

Bez urazky ale to vazne cakas ze sem hodis kus kodu, par errorov a napises k tomu najdite mi chybu?

Ak chces pawnit tak pawni ale chyby ktore ti pri pawneni vzniknu si ries sam.

Napíšu to jinak.

Mohli by jste mi prosím pomoct najít a odstranit chybu?

Link to comment
Share on other sites

  • 0

Z těchto 4 řádků se nedá nic vyčíst, postni toho trochu víc. Nejléle celý callback OnPlayerKeyStateChange + celý callback, který je nad ním. A očísluj řádky

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...