SA-MP Forums Archive
Help please ! - 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 please ! (/showthread.php?tid=407215)



Help please ! - ghostmaster - 13.01.2013

I'm new in the area of ​​Pawn, I build a business and gave an error.

Line error:

pawn Код:
SetTimer("SendMSG", 300000, true)
    return 1;
pawn Код:
The error in this return 1;

Error:

pawn Код:
D:\MOACIR\Desktop\Pawno\GM de Teste\gamemodes\GM.pwn(76) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Help me Please !


Re: Help please ! - jakejohnsonusa - 13.01.2013

Make sure the return 1; isn't indented (like it looks like it is), also the full code would be better... This doesn't show any problems.


Re: Help please ! - LarzI - 13.01.2013

pawn Код:
SetTimer("SendMSG", 300000, true);
return 1;
If you read the error, it literally says that it didn't find what it was looking for - in this case it was a ";" - but it found "return". This means that somewhere before the "return", there should be a ";" - it's not really hard to understand unless you don't understand the English language at all.


Respuesta: Help please ! - ghostmaster - 15.01.2013

Thanks !!