Jump to content
  • 0

pomoc Givecahs


BoCo

Dotaz

Caute, mam maly problemik s odosielanim money :d

 

format(string, sizeof(string), "Hrac %s ti poslal ciastku %d", sendername, givename, cash);
SendClientMessage(0xFFFFFFAA, playerid");

 

Errory

C:\Documents and Settings\kosar\Desktop\Marián\PAWNO\mod.pwn(258) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\kosar\Desktop\Marián\PAWNO\mod.pwn(258) : warning 215: expression has no effect
C:\Documents and Settings\kosar\Desktop\Marián\PAWNO\mod.pwn(258) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\kosar\Desktop\Marián\PAWNO\mod.pwn(258) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kosar\Desktop\Marián\PAWNO\mod.pwn(258) : 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

3 odpovědí na tuto otázku

Recommended Posts

  • 0

new string [64];

format(string, sizeof(string), "Hrac %s ti poslal ciastku %d", sendername, givename, cash);

SendClientMessage(playerid, 0xFFFFFFAA, "string");

Máš vůbec definováno sendername, givename, cash?

Navíc, ty 3 (nevím co to je), máš mít jen 2, v SCM vypisuješ čátsku a jméno hráče který poslal peníze, tudíž by tam měly být jen 2 ty věci...:d

Link to comment
Share on other sites

  • 0

Zkus tento opraveny kod:

 

format(string, sizeof(string), "Hrac %s ti poslal ciastku %d", sendername, cash);
SendClientMessage(playerid, 0xFFFFFFAA, string);

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