SA-MP Forums Archive
/accent - 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: /accent (/showthread.php?tid=155261)



/accent - DavidMcp - 17.06.2010

/accent Can someone help me I really need this command.


Re: /accent - Flashy - 17.06.2010

Learn to script. Easy.


Re: /accent - DavidMcp - 17.06.2010

I know how to script , I'm just not sure on how to do this.


Re: /accent - Carlton - 17.06.2010

Quote:
Originally Posted by Flashy
Learn to script. Easy.
Learn to useful, Easy.

_________________________________________________

Quote:
Originally Posted by DavidMcp
D:\Users\Admin\Desktop\ser_0.3\ser 0.3\gamemodes\larp.pwn(24193) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\Users\Admin\Desktop\ser_0.3\ser 0.3\gamemodes\larp.pwn(24193) : error 008: must be a constant expression; assumed zero
D:\Users\Admin\Desktop\ser_0.3\ser 0.3\gamemodes\larp.pwn(24195) : error 017: undefined symbol "PlayersAccent"
D:\Users\Admin\Desktop\ser_0.3\ser 0.3\gamemodes\larp.pwn(24195) : warning 215: expression has no effect
D:\Users\Admin\Desktop\ser_0.3\ser 0.3\gamemodes\larp.pwn(24195) : error 001: expected token: ";", but found "]"
D:\Users\Admin\Desktop\ser_0.3\ser 0.3\gamemodes\larp.pwn(24195) : error 029: invalid expression, assumed zero
D:\Users\Admin\Desktop\ser_0.3\ser 0.3\gamemodes\larp.pwn(24195) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Yea' sorry DavidMcp I didn't know you replied. Here's a fixed code:

pawn Код:
if(!strcmp("/accent", cmdtext, true)) {
  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFF, "/accept <accent> (German, Spanish etc..)");
  strmid(PlayersAccent[playerid], tmp, 0, strlen(tmp), 255);
  return 1;
}
Edit: "Fixed code for the command"