Get some errors - 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: Get some errors (
/showthread.php?tid=151341)
Get some errors -
Antonio [G-RP] - 30.05.2010
pawn Код:
if (strcmp(gunid, "sunny", true, strlen(gunid)) == 0)) // 19211
{
SendRconCommand("weather 1");
OOCOff(COLOR_NEWS, "Local News: The weather forcast has changed to sunny!");
}
else if (strcmp(gunid, "fog", true, strlen(gunid)) == 0)) // 19216
Код:
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\ERP.pwn(19211) : error 029: invalid expression, assumed zero
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\ERP.pwn(19216) : error 029: invalid expression, assumed zero
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\ERP.pwn(19216) : warning 215: expression has no effect
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\ERP.pwn(19216) : error 001: expected token: ";", but found "if"
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\ERP.pwn(19216) : error 029: invalid expression, assumed zero
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\ERP.pwn(19216) : fatal error 107: too many error messages on one line
Re: Get some errors -
coole210 - 30.05.2010
Show full script
Re: Get some errors -
[HiC]TheKiller - 30.05.2010
pawn Код:
if (strcmp(gunid, "sunny", true, strlen(gunid) == 0)) // 19211
{
SendRconCommand("weather 1");
OOCOff(COLOR_NEWS, "Local News: The weather forcast has changed to sunny!");
}
else if (strcmp(gunid, "fog", true, strlen(gunid) == 0)) // 19216
It would really nice if you could check your code before posting it. You had 2 extra ')'. Also, there is a function to set weather =].
Quote:
Originally Posted by Coole[AG
]
Show full script
|
... Why?
Re: Get some errors -
Antonio [G-RP] - 30.05.2010
Quote:
Originally Posted by [HiC
TheKiller ]
pawn Код:
if (strcmp(gunid, "sunny", true, strlen(gunid) == 0)) // 19211 { SendRconCommand("weather 1"); OOCOff(COLOR_NEWS, "Local News: The weather forcast has changed to sunny!"); } else if (strcmp(gunid, "fog", true, strlen(gunid) == 0)) // 19216
It would really nice if you could check your code before posting it. You had 2 extra ')'. Also, there is a function to set weather =].
Quote:
Originally Posted by Coole[AG
]
Show full script
|
... Why?
|
Thanks man
Quote:
Originally Posted by Coole[AG
]
Show full script
|
Sorry, it's not for giveaway
Re: Get some errors -
[asg]davo - 30.05.2010
then how are we suppose to help u
Re: Get some errors -
coole210 - 30.05.2010
Not your GM your command >.>
Re: Get some errors -
azzerking - 30.05.2010
Hey First Just Show The Whole Command Nothing Else
1) Show Full Command
2) We Might Be Able To Help
3) Your Will Be Happy