Help please with a command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please with a command (
/showthread.php?tid=172901)
Help please with a command -
Roma555 - 31.08.2010
new bljad[MAX_PLAYERS];
new countxxx;
new truecolor;
[code]OnPlayerConnect:[code]
bljad[playerid] = -1;
OnGameModeInit:
Код:
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?
Re: Help please with a command -
CyNiC - 31.08.2010
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.
Re: Help please with a command -
Roma555 - 31.08.2010
I do that my badge on a radar blinked
Re: Help please with a command -
Mike Garber - 31.08.2010
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.
Re: Help please with a command -
Roma555 - 31.08.2010
How to make, that my badge is blinked at the command input
Re: Help please with a command -
Mike Garber - 31.08.2010
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.