[Help] Effects
#1

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
Reply
#2

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

Reply
#3

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
Reply
#4

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.
Reply
#5

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");
Reply
#6

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;

Reply
#7

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

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

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

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

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)