Jump to content
  • 0

pomoc Mód se mi zbláznil xD Chyba s Playername


narutoo

Dotaz

Čuss lidičky mam v pwn chyby

(1715) : error 076: syntax error in the expression, or invalid function call
(1716) : error 076: syntax error in the expression, or invalid function call
(4896) : error 076: syntax error in the expression, or invalid function call
(4897) : error 076: syntax error in the expression, or invalid function call

Nastalo to když sem smazal new playername[max.............

Byly tam dvakrát tak sem ho hodil nahoru jeden.

Chyby tak sem místo toho new hodil stock o playername a ted tuty chyby.

 

Řádky:

1715: GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);

1716: printf("(Předchozí text %s byl blokovan SPAM)", PlayerName);

4896: GetPlayerName(playerid,PlayerName, MAX_PLAYER_NAME);

4897:format(countstring, sizeof(countstring), "%s spustil odpočítávání", PlayerName);

 

 

//Chyby vyběhly když sem tam dával registrace přes dcmd

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0

new playername[MAX_PLAYER_NAME];

nemôže biť hore :) medzi news... to je ako string... ked dáš string hore tak tiež toto bude písať... tak hore to playername zmaž a pred každý riadok

getplayername....

daj

new playername[22];

dúfam že si pochopil... ani ja teoreticky neviem prečo nesmie biť npr. string hore :) ale v každom publicu zvlášť

Link to comment
Share on other sites

  • 0

Njn já sem pawno dělal ještě minulej rok no ale s 0.2. Teď se to trochu liší v pawnu xD

 

Hele tak nahoře pod main() mam stock playername......

A potom před tima dvouma erorama sem dal new playername[22];

A skočí další errory xD.

Kdyžtak ti napíšu muj stock

 

stock PlayerName(playerid) {

new name[255];

GetPlayerName(playerid, name, 255);

return name;

}

 

a tady errory

1715) : error 076: syntax error in the expression, or invalid function call
1716) : error 076: syntax error in the expression, or invalid function call
1714) : warning 204: symbol is assigned a value that is never used: "playername"
4896) : error 076: syntax error in the expression, or invalid function call
4897) : error 076: syntax error in the expression, or invalid function call
4895) : warning 204: symbol is assigned a value that is never used: "playername"

1716: printf("(Předchozí text %s byl blokovan SPAM)", PlayerName);

1714: new playername[22];

4895: new playername[22];

4896: GetPlayerName(playerid,PlayerName, MAX_PLAYER_NAME);

4897: format(countstring, sizeof(countstring), "%s spustil odpočítávání", PlayerName);

Link to comment
Share on other sites

  • 0

No když smažu tak spousta další errorů. Ale kašlu na nějaký páraání s tutím xD

Prostě sem si ty příkazy přeupravil aby sem nemusel použít playername atd.. ale jinak dík

Link to comment
Share on other sites

  • 0

printf("(Předchozí text %s byl blokovan SPAM)", PlayerName(playerid));//alebo id kicknuteho...

 

format(countstring, sizeof(countstring), "%s spustil odpočítávání", PlayerName(playerid));

 

 

 

a toto už fakt nemusíš

 

new playername[22];

new playername[22];

GetPlayerName(playerid,PlayerName, MAX_PLAYER_NAME);

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