Help please with a command
#1

new bljad[MAX_PLAYERS];
new countxxx;
new truecolor;

[code]OnPlayerConnect:[code]
bljad[playerid] = -1;

OnGameModeInit:
Код:
countxxx = 0;
Код:
if (strcmp("/1", cmdtext, true, 10) == 0)
{
bljad[playerid] = 1;
SetTimerEx("nutiibljad", 1000, true, "i", playerid);
GetPlayerColor(playerid, truecolor);
return 1;
}
Код:
forward nutiibljad(playerid);
public nutiibljad(playerid)
{
counxxxt++;
if(count % 2 == 0)
{
SetPlayerColor(playerid, truecolor);
}
else
{
SetPlayerColor(playerid, 0xFFFF00AA);
}
}
Gives errors:
Код:
C:\DOCUME~1\C5E3~1\0016~1\-!SFGA~1\-!SF_G~1.9!-\9B02~1\SF-GAN~1.PWN(4046) : warning 202: number of arguments does not match definition
C:\DOCUME~1\C5E3~1\0016~1\-!SFGA~1\-!SF_G~1.9!-\9B02~1\SF-GAN~1.PWN(14090) : error 017: undefined symbol "counxxxt"
C:\DOCUME~1\C5E3~1\0016~1\-!SFGA~1\-!SF_G~1.9!-\9B02~1\SF-GAN~1.PWN(14090) : warning 215: expression has no effect
C:\DOCUME~1\C5E3~1\0016~1\-!SFGA~1\-!SF_G~1.9!-\9B02~1\SF-GAN~1.PWN(14091) : error 017: undefined symbol "count"
C:\DOCUME~1\C5E3~1\0016~1\-!SFGA~1\-!SF_G~1.9!-\9B02~1\SF-GAN~1.PWN(1093) : warning 204: symbol is assigned a value that is never used: "countxxx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
What not so has made?
Reply
#2

Shift it:
new bljad[MAX_PLAYERS];
new countxxx;
new truecolor;
To it:
pawn Код:
new bljad[MAX_PLAYERS];
new countxxxt;
new truecolor;
And in the callback "nuttiibjad" i don't know what you want do, so i think what you should shift count to countxxxt.
Reply
#3

I do that my badge on a radar blinked
Reply
#4

Quote:
Originally Posted by Roma555
Посмотреть сообщение
I do that my badge on a radar blinked
Well then It's all OK then?
If you are using a translator, don't. It is very hard to understand translators output.
Reply
#5

How to make, that my badge is blinked at the command input
Reply
#6

Quote:
Originally Posted by Roma555
Посмотреть сообщение
How to make, that my badge is blinked at the command input
GOD DAMNIt , you are stupid.
Don't use translator, I am sure i will understand you much better If you don't.
Don't just ask the question after every post made... Then there's no discussion, just a question asked.

It's like "How to make my badge blinked on command input", then someone say "Try this" then you say "How to make my badge blinked on command input" over and over... So stupid.

And It's not called badge.. It's a blip, not a badge.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)