Help with command. - 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: Help with command. (
/showthread.php?tid=143948)
Help with command. -
TKZ227 - 25.04.2010
I have been searching the web, studying other scripts (LA:RP, and a few others), and I can not seem to make a working /me command for my script. I browsed these forums, and all I saw so far I tried adding, yet I still am getting errors.
My script:
http://pastebin.com/CSiw4qkC
The errors:
http://pastebin.com/8Gj8b4Zi
I appreciate any help I can get, thanks!
Re: Help with command. -
ruckfules99 - 25.04.2010
Here's one.
That's what i use.
Код:
if(!strcmp(cmdtext, "/me", true, 3)) {
if(cmdtext[3] == 0) {
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me (action)");
return 1;
}
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(0xFFFF00AA, str);
return 1;
}
Re: Help with command. -
TKZ227 - 25.04.2010
I replaced mine with yours and now have:
Код:
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(122) : error 017: undefined symbol "AddPlayerClass90"
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(122) : error 029: invalid expression, assumed zero
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(122) : warning 215: expression has no effect
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(289) : error 001: expected token: ",", but found ";"
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(408) : warning 209: function "OnPlayerCommandText" should return a value
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(410) : error 055: start of function body without function header
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(412) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(413) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(416) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(418) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(420) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(422) : error 021: symbol already defined: "dini_Create"
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(423) : error 021: symbol already defined: "dini_IntSet"
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(423) : error 010: invalid function or declaration
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(423 -- 424) : error 021: symbol already defined: "dini_IntSet"
C:\Users\Tyler\Desktop\CityLifeRolepay\CityLifeRoleplayBeta.pwn(423 -- 424) : fatal error 107: too many error messages on one line
Re: Help with command. -
MadeMan - 25.04.2010
pawn Код:
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(0xFFFF00AA, str);
return 1;
}
return 0;
}
//---------------------------------Registration System------------------------------------------------
{
new cmd[256], idx, file[128], tmp[256], tmp2[256];
cmd = strtok(cmdtext, idx);
Change this to
pawn Код:
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(0xFFFF00AA, str);
return 1;
}
//---------------------------------Registration System------------------------------------------------
new cmd[256], idx, file[128], tmp[256], tmp2[256];
cmd = strtok(cmdtext, idx);