undefined symbol "idx"
#1

help me iam stupid in scripting and just its small help please
Reply
#2

this might help you ( not expert )
pawn Код:
#Define idx
Reply
#3

pawn Код:
if (IsPlayerInAnyVehicle(playerid))
{
    new tmp1[256],tmp2[256],idx;
//And all your code
I suggest you to move to sscanf
Reply
#4

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

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
Код:
new idx;
on top of your script.
Reply
#6

added but still same error
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)