SA-MP Forums Archive
hmm, could need some help please ;) - 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: hmm, could need some help please ;) (/showthread.php?tid=200980)



hmm, could need some help please ;) - Tutrix - 19.12.2010

Fixed , delete plz

pawn Код:
NO CODE HERE



Re: hmm, could need some help please ;) - Sledge - 19.12.2010

ticket = strtok(idx, cmdtext);

try that


or try this
ticket[playerid] = strtok(cmdtext, idx);


Re: hmm, could need some help please ;) - Tutrix - 19.12.2010

Quote:
Originally Posted by Sledge
Посмотреть сообщение
or try this
ticket[playerid] = strtok(cmdtext, idx);
on that, i get this error :
Код:
must be assigned to an array
And i dont know how to fix that either


Re: hmm, could need some help please ;) - blackwave - 19.12.2010

That dont need to be an array. Just put:

pawn Код:
new ticket;

Otherwise, if you're using for players, put:

pawn Код:
new ticket[MAX_PLAYERS];



Re: hmm, could need some help please ;) - XePloiT - 19.12.2010

show the idx...


Re: hmm, could need some help please ;) - Tutrix - 19.12.2010

Quote:
Originally Posted by XePloiT
Посмотреть сообщение
show the idx...
What do you mean?

and blackwave, this is the errors i get :

Код:
error 006: must be assigned to an array 
error 035: argument type mismatch (argument 1) 
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)



Re: hmm, could need some help please ;) - Jefff - 19.12.2010

pawn Код:
if(IsPlayerConnected(playerid))
{
new ticket[128];
ticket = strtok(cmdtext, idx);
1. Disconnected player cant type command xD
2. strcat(ticket,strtok(cmdtext, idx));
or
3. Remove this
pawn Код:
new ticket[128];
ticket = strtok(cmdtext, idx);
and all 'ticket' replace to
pawn Код:
cmdtext[11]



Re: hmm, could need some help please ;) - XePloiT - 19.12.2010

try to replace this
pawn Код:
new ticket[128];
to this:
pawn Код:
new ticket[128],idx;



Re: hmm, could need some help please ;) - Tutrix - 19.12.2010

It works, but not the timers :S They dont start.


Re: hmm, could need some help please ;) - Tutrix - 19.12.2010

Quote:
Originally Posted by XePloiT
Посмотреть сообщение
try to replace this
pawn Код:
new ticket[128];
to this:
pawn Код:
new ticket[128],idx;
nope dont work, and the timers dont work either :S