Help a bit here? - 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)
+--- Thread: Help a bit here? (
/showthread.php?tid=386765)
Help a bit here? -
N0FeaR - 21.10.2012
Код:
C:\Users\Hellman.Hellmans-PC\Desktop\Snaksirp\gamemodes\SNUSKI.1.0.pwn(46505) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Hellman.Hellmans-PC\Desktop\Snaksirp\gamemodes\SNUSKI.1.0.pwn(46505) : error 017: undefined symbol "RandomStart"
C:\Users\Hellman.Hellmans-PC\Desktop\Snaksirp\gamemodes\SNUSKI.1.0.pwn(46505) : warning 215: expression has no effect
C:\Users\Hellman.Hellmans-PC\Desktop\Snaksirp\gamemodes\SNUSKI.1.0.pwn(46506) : error 017: undefined symbol "RandomStart"
C:\Users\Hellman.Hellmans-PC\Desktop\Snaksirp\gamemodes\SNUSKI.1.0.pwn(46507) : error 017: undefined symbol "RandomStart"
C:\Users\Hellman.Hellmans-PC\Desktop\Snaksirp\gamemodes\SNUSKI.1.0.pwn(46522) : error 010: invalid function or declaration]
pawn Код:
new RandomStart;
RandomStart = random(2);
switch(RandomStart)
{
case 0:
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
}
case 1:
{
ApplyAnimation(playerid,"MISC", "Idle_Chat_02",4.1,0,1,1,1,1);
}
}
new time=strlen(text)*100;
SetTimerEx("StopTalking",time,0,"i",playerid);
return 0;
Re: Help a bit here? -
Edvin - 21.10.2012
Are you sure that, lines:
46505, 46506, 46507
have "undefined symbol "RandomStart" error?
Post all response for that dialog.
Re: Help a bit here? -
RedJohn - 21.10.2012
Код:
new RandomStart[2];
RandomStart = random(RandomStart);
switch(RandomStart)
{
case 0:
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
}
case 1:
{
ApplyAnimation(playerid,"MISC", "Idle_Chat_02",4.1,0,1,1,1,1);
}
}
new time=strlen(text)*100;
SetTimerEx("StopTalking",time,0,"i",playerid);
return 0;
Not tested.
Re: Help a bit here? -
N0FeaR - 21.10.2012
pawn Код:
C:\Users\Hellman.Hellmans-PC\Desktop\Snuski\gamemodes\Snuski.pwn(46505) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Hellman.Hellmans-PC\Desktop\Snuski\gamemodes\Snuski.pwn(46505) : error 017: undefined symbol "RandomStart"
C:\Users\Hellman.Hellmans-PC\Desktop\Snuski\gamemodes\Snuski.pwn(46505) : warning 215: expression has no effect
C:\Users\Hellman.Hellmans-PC\Desktop\Snuski\gamemodes\Snuski.pwn(46505) : error 001: expected token: ";", but found "]"
C:\Users\Hellman.Hellmans-PC\Desktop\Snuski\gamemodes\Snuski.pwn(46505) : fatal error 107: too many error messages on one line
Re: Help a bit here? -
HyDrAtIc - 21.10.2012
Show the line 47505 N0FeaR please,how should we know where's the line error?