undefined symbol "idx" - 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: undefined symbol "idx" (
/showthread.php?tid=357414)
undefined symbol "idx" -
SamiHam - 07.07.2012
help me iam stupid in scripting and just its small help please
Re: undefined symbol "idx" -
M3mPHi$_S3 - 07.07.2012
this might help you ( not expert )
Re: undefined symbol "idx" -
[MM]RoXoR[FS] - 07.07.2012
pawn Код:
if (IsPlayerInAnyVehicle(playerid))
{
new tmp1[256],tmp2[256],idx;
//And all your code
I suggest you to move to sscanf
Re: undefined symbol "idx" -
SamiHam - 07.07.2012
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
Re: undefined symbol "idx" -
[MM]RoXoR[FS] - 07.07.2012
Quote:
Originally Posted by SamiHam
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
on top of your script.
Re: undefined symbol "idx" -
SamiHam - 07.07.2012
added but still same error
Re: undefined symbol "idx" -
Deathlane - 07.07.2012
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 Код:
new cmd[128];
new idx;
cmd = strtok(cmdtext, idx);
then... Don't follow anyone's suggestion... (Will make it worse)
Change
pawn Код:
if(strcmp(cmdtext, "/cc", true) == 0)
to:
pawn Код:
if(strcmp(cmd, "/cc", true) == 0) //Notice 'cmdtext' and 'cmd'
EDIT:
Hope I helped + Please 'indent' my script because of Pastebin.com error :>