A small problem with my script
#1

when i
Код:
if(!strcmp(cmdtext,"/cartp",true)) {
  SetPlayerPos(playerid, 2278,89, 1457,782, 15);
  return 1;
}
i get
Код:
warning 202: number of arguments does not match definition
when i use
Код:
if(!strcmp(cmdtext,"/cartp",true)) {
  SetPlayerPos(playerid, 2278,89, 1457);
  return 1;
}
and go ingame and do /cartp it takes me somewhere high...
I tried /save and i tried X-Treme SAMP ulimate... to get the cords and nothing D: Whats wrong
Reply
#2

pawn Код:
if(!strcmp(cmdtext,"/cartp",true)) {
  SetPlayerPos(playerid, 2278.89, 1457.782, 15);
  return 1;
}
Reply
#3

Well, I'm going to point out this mistake so you don't do it in the future.

You've got a , where a "." needed to be.
Reply
#4

jesus chirst D: Same prob....
now i did
Код:
if(!strcmp(cmdtext,"/cartp",true))
  {
    SetPlayerPos(playerid, 2278.89, 1457.782, 15);
    return 1;
  }
and got
Код:
error 010: invalid function or declaration
x4
Reply
#5

try

pawn Код:
if(strcmp(cmdtext,"/cartp", true) == 0)
{
SetPlayerPos(playerid, 2278.89, 1457.782, 15);
return 1;
}
Reply
#6

Quote:
Originally Posted by Majataka
jesus chirst D: Same prob....
now i did
Код:
if(!strcmp(cmdtext,"/cartp",true))
  {
    SetPlayerPos(playerid, 2278.89, 1457.782, 15);
    return 1;
  }
and got
Код:
error 010: invalid function or declaration
x4
pawn Код:
if(strcmp(cmd, "/cartp", true) == 0)
  {
    SetPlayerPos(playerid, 2278.89, 1457.782, 15);
    return 1;
  }
Reply
#7

Quote:
Originally Posted by Majataka
jesus chirst D: Same prob....
now i did
Код:
if(!strcmp(cmdtext,"/cartp",true))
  {
    SetPlayerPos(playerid, 2278.89, 1457.782, 15);
    return 1;
  }
and got
Код:
error 010: invalid function or declaration
x4
dude , i put that in my script and get no errors and it compile good and work ??!?!?
________
Universal Health Warehouse
Reply
#8

Quote:
Originally Posted by Razvann
Quote:
Originally Posted by Majataka
jesus chirst D: Same prob....
now i did
Код:
if(!strcmp(cmdtext,"/cartp",true))
  {
    SetPlayerPos(playerid, 2278.89, 1457.782, 15);
    return 1;
  }
and got
Код:
error 010: invalid function or declaration
x4
pawn Код:
if(strcmp(cmd, "/cartp", true) == 0)
  {
    SetPlayerPos(playerid, 2278.89, 1457.782, 15);
    return 1;
  }
That will still give him errors...
Reply
#9

Quote:
Originally Posted by [AC
Etch ]
Quote:
Originally Posted by Majataka
jesus chirst D: Same prob....
now i did
Код:
if(!strcmp(cmdtext,"/cartp",true))
  {
    SetPlayerPos(playerid, 2278.89, 1457.782, 15);
    return 1;
  }
and got
Код:
error 010: invalid function or declaration
x4
Yeh D: did something wrong but works fine now P: Thanks

dude , i put that in my script and get no errors and it compile good and work ??!?!?
Reply
#10

pawn Код:
if(strcmp(cmdtext,"/cartp",true) == 0)
{
SetPlayerPos(playerid, 2278.89, 1457.782, 15);
return 1;
}
Have you tried that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)