SA-MP Forums Archive
[Help] Effects - 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] Effects (/showthread.php?tid=277213)



[Help] Effects - Trawltrawl - 16.08.2011

Hello i just want to know a simple script from you guys^^
Ok, i made a dialog like
'Do you love TrawlTrawl?'
'yes' 'no'
-
How i can make if a person presses no, he will be kicked? Thanks
I'd really appreciate who help me!
Regards,
TrawlTrawl


Re: [Help] Effects - Kush - 16.08.2011

PHP код:
if(response)
{
    
//Code
}
else
{
    
//Code




Re: [Help] Effects - Trawltrawl - 16.08.2011

Why should i type in code?
I said the answers are 'Yes' and 'No'
If he presses 'Yes' Spawn
'no' Kick. Do the full script please.
Thanks


Re: [Help] Effects - Kush - 16.08.2011

Quote:
Originally Posted by Trawltrawl
Посмотреть сообщение
Do the full script please.
Just cause you said please.

PHP код:
if(response)
{
    
SetSpawnInfo(playerid0299,0.0,0.0,0.0,0,0,0,0,0,0,0);
    
SpawnPlayer(playerid);
}
else
{
    
Kick(playerid);

Quote:
Originally Posted by Trawltrawl
Посмотреть сообщение
Why should i type in code?
If you mean where, then where-ever you desire.


Re: [Help] Effects - Trawltrawl - 16.08.2011

Thanks!
Im sorry but i got an error, if I annoyed or something @ Kush, u can just ignore this
I can wait till other people reply (:
C:\Users\User\Desktop\Scripting\gamemodes\AceDrive rs.pwn(77) : error 017: undefined symbol "response"
This what happen
I typed ur code under
ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,2,"A ce Drivers","Do you like TrawlTrawl?","Yes","no");


Re: [Help] Effects - Kush - 17.08.2011

Quote:
Originally Posted by Trawltrawl
Посмотреть сообщение
Thanks!
Im sorry but i got an error, if I annoyed or something @ Kush, u can just ignore this
I can wait till other people reply (:
C:\Users\User\Desktop\Scripting\gamemodes\AceDrive rs.pwn(77) : error 017: undefined symbol "response"
This what happen
I typed ur code under
ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,2,"A ce Drivers","Do you like TrawlTrawl?","Yes","no");
Firstly, your not annoying. And frankly, I can care less if you're bad, we were all bad a some point in time (unless you read).

ON-TOPIC: Your using the code provided incorrectly.

PHP код:
public OnPlayerConnect(playerid)
{
    
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"A ce Drivers","Do you like TrawlTrawl?","Yes","No")
    return 
1;

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 2)
    {
        if(
response)
        {
            
SetSpawnInfo(playerid0299,0.0,0.0,0.0,0,0,0,0,0,0,0);
            
SpawnPlayer(playerid);
        }
        else
        {
            
Kick(playerid);
        }
    }
    return 
1;




Re: [Help] Effects - mprofitt - 17.08.2011

Are basic scripting examples in the wiki? Would the original poster please check and report back?


Re : [Help] Effects - Uchiwa_ - 17.08.2011

http://forum.sa-mp.com/showthread.ph...ht=pawn+basics here you go


Re: Re : [Help] Effects - mprofitt - 17.08.2011

Quote:
Originally Posted by Uchiwa_
Посмотреть сообщение
FAIL!

You are not the original poster. My intentions was for HIM to do his own research.


Re: Re : [Help] Effects - Shockey HD - 17.08.2011

Quote:
Originally Posted by mprofitt
Посмотреть сообщение
FAIL!

You are not the original poster. My intentions was for HIM to do his own research.
You are starting to piss me off. Stop posting fail you pig.

Learn to post right. Im going to tell your FAILS!

Your life = FAIL!
Your Scripting skills = FAIL!
Your Post = FAIL!

Gtfo... One more time i see a dumb post leech that has the word FAIL! and that supplys no help what so ever, you will be reported.

FAIL!