21.12.2013, 18:40
Quote:
I did and got no errors.
Here's how i've done it (gotta say i kinda borrowed the idea while reading one of ******'s posts) Код:
public Anypublic(playerid) { new string[24]; GetPlayerName(playerid, string, 24); return string, 1; } |
I've seen a tutorial a few days ago and a line with multiple things after return would return only the last value.
So I think you're only returning the value "1".
Quote:
or something like this...?
pawn Код:
|
But it would work.
I used another approach for this:
http://forum.sa-mp.com/showpost.php?...39&postcount=5
Script A needs a string stored in script B;
Script A therefore uses CallRemoteFunction to ask script B to send the string back.
Script B uses another CallRemoteFunction to send the string in one go back to script A, which stores it in a special place.
Then script A is able to use the entire string at once.
It doesn't have to grab character per character from script B and reconstruct it again.
I don't know which one is faster.
My approach works perfectly as well but to avoid too many CallRemoteFunctions, I'm merging all my filterscripts into one big script.
Then only CallRemoteFunction must be used between this big filterscript and the gamemode.