How do I answer a string? - 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: How do I answer a string? (
/showthread.php?tid=192944)
How do I answer a string? -
Dolph - 24.11.2010
So right now I am working with my organization system, which is working properly. The problem is that I want another player to /accept my invitation when I invite them to the org.
Like: "A leader has invited you blablabla.. Write /accept to accept it, or /decline to decline.
Hope I explained good enough.
Btw: I dont want any big scripts to tell me how to do things, all I have to know is the function and how to use it properly.
Re: How do I answer a string? -
Nero_3D - 24.11.2010
pawn Код:
// in /invite
SetPVarInt(THE_ID_YOU_INVITE, "Invite", 1);
pawn Код:
// in /accept
if(GetPVarInt(playerid, "Invite") != 0) {
//blabla
DeletePVar(playerid, "Invite");
return 1;
}
pawn Код:
// in /decline
if(GetPVarInt(playerid, "Invite") != 0) {
//blabla
DeletePVar(playerid, "Invite");
return 1;
}
Re: How do I answer a string? -
Dolph - 24.11.2010
Okay, thanks!