![]() |
|
[Solved] See the other player's weapons (Only tested on my own) - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Miscellaneous (https://forum.sa-mp.nl/forum-4.html) +--- Forum: Gaming (https://forum.sa-mp.nl/forum-27.html) +--- Thread: [Solved] See the other player's weapons (Only tested on my own) (/thread-20219.html) |
[Solved] See the other player's weapons (Only tested on my own) - speedruntrainer - 08-25-2009 Hey all, I had some errors with undefined symbol tmp ReturnUser etc etc, This is fixed now but then I get different errors which pisses me off. I have this: On top of script under forwards: Code: new cmd[128];I did this to define them. Under the command: Code: if(strcmp(cmd, "/pweapons", true) == 0) {The errors + a warning that needs to be fixed: Code: C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Server test gta\filterscripts\Test.pwn(178) : error 012: invalid function call, not a valid addressI have to be sure 100% is correct because I'm scripting for a server. I only have my own script I started with. I have like 4 backups (lol) In case I don't get some shit fixed. Can anybody help me out? I hope I get an answer soon. Kind Regards - speedruntrainer EDIT: Line 178 is: PAWN Code: new giveplayerid = ReturnUser(tmp); Re: ??? This pisses me off. - Matthias - 08-25-2009 You probably don't have returnuser(tmp) as function. strcmp sucks though, use dcmd + sscanf Re: ??? This pisses me off. - speedruntrainer - 08-25-2009 Where I need to add that function exactly? And what is dcmd and sscanf? It will take YEARS to script if I use dcmd because I did everything with strcmp. Everything is failing on me when it's getting harder.
Re: ??? This pisses me off. - Matthias - 08-26-2009 Yeah but dcmd & sscanf is just way better. Try making a /giveweapon [id] [weaponid] [ammo] command with strcmp .EDIT: Looks like somebody gave you the function in your other topic @ the SA:MP forums already
Re: ??? This pisses me off. - Slice - 08-27-2009 Mijn spullen! Re: ??? This pisses me off. - speedruntrainer - 08-27-2009 Oh yeah, I called a folder like this So I know almost all my things are in there. I made that folder mainly because my desktop was full so all my things are in that folder now ![]() I also installed GTA San Andreas and sa-mp in there lol. [Solved] - speedruntrainer - 08-29-2009 Solved, but tested it on my own server only. Couldn't test it with other players yet. |