OnDialogResponse Errors -
Swyft™ - 17.12.2011
Hey i need help with these errors, I suck soo much with dialogs and would appreciate help!!
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case teleports:// Our dialog!
{
switch(listitem)// Checking which listitem was selected
{
case: 0
{
return cmd_stunts(playerid,params);
}
case: 1
{
return cmd_deathmatches(playerid,params);
}
case: 2
{
return cmd_parkours(playerid,params);
}
case: 3
{
return cmd_roleplays(playerid,params);
}
}
}
return 1;
}
ERRORS:
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7310) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7310 -- 7311) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7312) : error 017: undefined symbol "params"
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7314) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7314 -- 7315) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7316) : error 017: undefined symbol "params"
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(731

: warning 217: loose indentation
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(731

: error 014: invalid statement; not in switch
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(731

: error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7318 -- 7319) : error 029: invalid expression, assumed zero
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7318 -- 7319) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
10 Errors.
Re: OnDialogResponse Errors -
Alureon - 17.12.2011
Try this, sorry about the indentation.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case teleports:// Our dialog!
{
switch(listitem)// Checking which listitem was selected
{
case 0:
{
return cmd_stunts(playerid, "");
}
case 1:
{
return cmd_deathmatches(playerid, "");
}
case 2:
{
return cmd_parkours(playerid, "");
}
case 3:
{
return cmd_roleplays(playerid, "");
}
}
}
}
}
return 1;
}
Re: OnDialogResponse Errors -
Swyft™ - 17.12.2011
Quote:
Originally Posted by Alureon
Try this, sorry about the indentation.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(response) { switch(dialogid) { case teleports:// Our dialog! { switch(listitem)// Checking which listitem was selected { case 0: { return cmd_stunts(playerid, ""); } case 1: { return cmd_deathmatches(playerid, ""); } case 2: { return cmd_parkours(playerid, ""); } case 3: { return cmd_roleplays(playerid, ""); } } } } }
return 1; }
|
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7312) : error 035: argument type mismatch (argument 2)
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7316) : error 035: argument type mismatch (argument 2)
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7320) : error 035: argument type mismatch (argument 2)
C:\Users\EASYHOME\Desktop\UniverseOfStunting\gamem odes\UoS.pwn(7324) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: OnDialogResponse Errors -
Alureon - 17.12.2011
Lines?
Re: OnDialogResponse Errors -
Swyft™ - 17.12.2011
Quote:
Originally Posted by Alureon
Lines?
|
its the return cmd_stunts(playerid, ""); all of em...
Re: OnDialogResponse Errors -
vassilis - 17.12.2011
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == teleports)
{
if(response)
{
switch(listitem)// Checking which listitem was selected
{
case: 0
{
return cmd_stunts(playerid,params);
}
case: 1
{
return cmd_deathmatches(playerid,params);
}
case: 2
{
return cmd_parkours(playerid,params);
}
case: 3
{
return cmd_roleplays(playerid,params);
}
}
}
return 1;
}
Re: OnDialogResponse Errors -
Alureon - 17.12.2011
What command processor are you using?
Re: OnDialogResponse Errors -
Swyft™ - 17.12.2011
Quote:
Originally Posted by Alureon
What command processor are you using?
|
i am using ZCMD
Re: OnDialogResponse Errors -
vassilis - 17.12.2011
itried to help you but you are ignoring me you will be ignorant to my face too
Re: OnDialogResponse Errors -
Swyft™ - 17.12.2011
Quote:
Originally Posted by vassilis
itried to help you but you are ignoring me you will be ignorant to my face too
|
Hey chill the fuck out I just saw your post, it wont work the error will say Undefined symbol params