Getting Error With My Script
#1

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 .
Reply
#2

You DID type Memeber instead of Member there...
Reply
#3

Quote:
Originally Posted by Ragidon
You DID type Memeber instead of Member there...
-.- well...that didnt fix my script still geting error.
Reply
#4

You need to compare it as a string :

pawn Код:
if( !strcmp( STRD, "Standard Member" ) ) print("* Error. Please Modify Document STRD Name To Something Else");
Reply
#5

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"
Reply
#6

Quote:
Originally Posted by Referbux
Код:
    #define STRD "Standard Member" // At The Top of My Script
?
so? yes that space was an accident and what ?
Reply
#7

You also typed Sandard Member i.o. Standard Member.
Reply
#8

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
Reply
#9

can u upload your script to pastebin? pls
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)