Getting Error With My Script - 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: Getting Error With My Script (
/showthread.php?tid=138538)
Getting Error With My Script - Micko9 - 02.04.2010
sowe...this is my code!
pawn Код:
#define STRD "Sandard Member" // At The Top of My Script
if (STRD == "Standard Memeber") print("* Error. Please Modify Document STRD Name To Something Else"); // LINE 37
i get this error :
Код:
MyPWNFILE(privacy protection) : error 001: expected token: "-string end-", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
hmm i dont get it .
Re: Getting Error With My Script -
Ragidon - 02.04.2010
You DID type Memeber instead of Member there...
Re: Getting Error With My Script - Micko9 - 02.04.2010
Quote:
Originally Posted by Ragidon
You DID type Memeber instead of Member there... 
|
-.- well...that didnt fix my script still geting error.
Re: Getting Error With My Script -
ZeRo_HUN - 02.04.2010
You need to compare it as a string :
pawn Код:
if( !strcmp( STRD, "Standard Member" ) ) print("* Error. Please Modify Document STRD Name To Something Else");
Re: Getting Error With My Script - Micko9 - 02.04.2010
Quote:
Originally Posted by ZeRo_HUN
You need to compare it as a string :
pawn Код:
if( !strcmp( STRD, "Standard Member" ) ) print("* Error. Please Modify Document STRD Name To Something Else");
|
well that wont help because i want that if its the sandard given in the script it will say that but that will say only if it has initself Standard Member , if someone wood replace that with "Super Standard Member" it wood still say : * Error. Please Modify Document STRD Name To Something Else"
Re: Getting Error With My Script - Micko9 - 02.04.2010
Quote:
Originally Posted by Referbux
Код:
#define STRD "Standard Member" // At The Top of My Script
 ?
|
so? yes that space was an accident and what

?
Re: Getting Error With My Script -
Ragidon - 02.04.2010
You also typed Sandard Member i.o. Standard Member.
Re: Getting Error With My Script - Micko9 - 02.04.2010
Quote:
Originally Posted by Ragidon
You also typed Sandard Member i.o. Standard Member.
|
omfg. I didnt ask you to fix me the words then the errors
Re: Getting Error With My Script -
Drake1994 - 02.04.2010
can u upload your script to pastebin? pls
Re: Getting Error With My Script -
Ragidon - 02.04.2010
Quote:
Originally Posted by Micko9
Quote:
Originally Posted by Ragidon
You also typed Sandard Member i.o. Standard Member.
|
omfg. I didnt ask you to fix me the words then the errors
|
It could fix some problems. You defined STRD as Standard Member, so you'll need to use Standard Member in your if.