SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 07/07/2012, 06:48 AM   #1
SamiHam
Big Clucker
 
Join Date: Jun 2012
Posts: 88
Reputation: 16
Question undefined symbol "idx"

help me iam stupid in scripting and just its small help please
SamiHam is offline   Reply With Quote
Old 07/07/2012, 06:51 AM   #2
M3mPHi$_S3
Gangsta
 
M3mPHi$_S3's Avatar
 
Join Date: Jun 2012
Location: Quetta, pk
Posts: 679
Reputation: 34
Default Re: undefined symbol "idx"

this might help you ( not expert )
pawn Code:
#Define idx
__________________
~Stats|" Fully ACtive now "~
~Facebook|" мυ∂υℓ Facebook "~
~Tutorial|" How to port forword [PICS & VEDIOS] "~

Code:
public OnPlayerAskHelp(playerid, help[])
{
    SetReplyForPlayer(playerid, I Wont Help you :D ");
[/CENTER]
M3mPHi$_S3 is offline   Reply With Quote
Old 07/07/2012, 07:04 AM   #3
[MM]RoXoR[FS]
Gangsta
 
[MM]RoXoR[FS]'s Avatar
 
Join Date: Mar 2012
Location: Gurgaon,India
Posts: 745
Reputation: 137
Default Re: undefined symbol "idx"

pawn Code:
if (IsPlayerInAnyVehicle(playerid))
{
    new tmp1[256],tmp2[256],idx;
//And all your code

I suggest you to move to sscanf
__________________
My Works
Top Players Include[Sorts Player's Kills|Money|Deaths|ANYTHING YOU WANT|
pawn Code:
public OnPlayerConnect(playerid)
{
  Ban(playerid);
  return 1;
}

Scripting for Money
[MM]RoXoR[FS] is offline   Reply With Quote
Old 07/07/2012, 07:12 AM   #4
SamiHam
Big Clucker
 
Join Date: Jun 2012
Posts: 88
Reputation: 16
Default Re: undefined symbol "idx"

roxor iam not scripter to change all things its hard i want easy way

@ maul i did define idx now i got this in save 2 lines
SamiHam is offline   Reply With Quote
Old 07/07/2012, 07:24 AM   #5
[MM]RoXoR[FS]
Gangsta
 
[MM]RoXoR[FS]'s Avatar
 
Join Date: Mar 2012
Location: Gurgaon,India
Posts: 745
Reputation: 137
Default Re: undefined symbol "idx"

Quote:
Originally Posted by SamiHam View Post
roxor iam not scripter to change all things its hard i want easy way

@ maul i did define idx now i got this in save 2 lines
Add
Code:
new idx;
on top of your script.
__________________
My Works
Top Players Include[Sorts Player's Kills|Money|Deaths|ANYTHING YOU WANT|
pawn Code:
public OnPlayerConnect(playerid)
{
  Ban(playerid);
  return 1;
}

Scripting for Money
[MM]RoXoR[FS] is offline   Reply With Quote
Old 07/07/2012, 07:42 AM   #6
SamiHam
Big Clucker
 
Join Date: Jun 2012
Posts: 88
Reputation: 16
Default Re: undefined symbol "idx"

added but still same error
SamiHam is offline   Reply With Quote
Old 07/07/2012, 09:46 AM   #7
MarcObeles20
Big Clucker
 
Join Date: Dec 2011
Location: Manila, Philippines
Posts: 168
Reputation: 34
Default Re: undefined symbol "idx"

Since... I made this thing... http://pastebin.com/gN3mB3rq... I will help.

So now, make sure you have strtok. Then under: OnPlayerCommandText, Add this:

pawn Code:
new cmd[128];
new idx;
cmd = strtok(cmdtext, idx);

then... Don't follow anyone's suggestion... (Will make it worse)

Change

pawn Code:
if(strcmp(cmdtext, "/cc", true) == 0)

to:

pawn Code:
if(strcmp(cmd, "/cc", true) == 0) //Notice 'cmdtext' and 'cmd'

EDIT:
Hope I helped + Please 'indent' my script because of Pastebin.com error :>
__________________
MarcObeles20 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
\pawno\include\streamer.inc(221) : error 017: undefined symbol "MAPICON_LOCAL" AdamCooper Scripting Help 5 05/05/2012 01:08 AM
5 Dialog errors - Input line too long, undefined symbol "t","is" and "only" Deal-or-die Scripting Help 6 01/05/2012 12:08 PM
"error 017: undefined symbol "IsPlayerInArea"" ?! XDamienX007 Français/French 5 01/09/2011 11:50 AM
[SOLVED] error 017: undefined symbol "GetPVarInt" cAMo Help Archive 10 15/05/2010 07:12 PM
[AJUDA] error 017: undefined symbol "GetVehicleVelocity" bRn Português/Portuguese 3 11/01/2010 11:11 PM


All times are GMT. The time now is 08:02 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.