24.06.2013, 17:51
Here's the Code
Errors:
pawn Код:
CMD:teles(playerid, params[])
{
new Str11[ ] = D_Teleports,
Str22[ ] = D_Teleports2,
Str33[ ] = D_Teleports3,
Str44[ 512 ];
format( Str44, sizeof Str44, "%s%s%s", Str11, Str22, Str33 );
ShowDialog( playerid, Teleports, DIALOG_STYLE_LIST, "Teleports", Str44 , "Select", "Exit" );
if (strcmp( params, "stuntparks", true) == 0)ShowDialog( playerid, Stuntparks, DIALOG_STYLE_LIST, "Stuntparks", D_Stuntparks , SelExit );
else if (strcmp( params, "races", true) == 0)ShowDialog( playerid, Races, DIALOG_STYLE_LIST, "Races", D_Races , SelExit );
else if (strcmp( params, "drifts", true) == 0)
{
new Str1[ ] = D_Drifts,
Str2[ ] = D_Drifts2,
Str3[ ] = D_Drifts3,
Str4[ 512 ];
format( Str4, 512, "%s%s%s", Str1, Str2, Str3 );
ShowDialog( playerid, Drifts, DIALOG_STYLE_LIST, "Drifts", Str4 , SelExit );
}
else if (strcmp( params, "drags", true) == 0)ShowDialog( playerid, Drags, DIALOG_STYLE_LIST, "Drags", D_Drags , SelExit );
else if (strcmp( params, "stunts", true) == 0)cmd_stunts( playerid, "" );
else if (strcmp( params, "fun", true) == 0)ShowDialog( playerid, Fun, DIALOG_STYLE_LIST, "Fun", D_Fun , SelExit );
else if (strcmp( params, "others", true) == 0)ShowDialog( playerid, Others, DIALOG_STYLE_LIST, "Others", D_Others , SelExit );
else if (strcmp( params, "cities", true) == 0)ShowDialog( playerid, Cities, DIALOG_STYLE_LIST, "Cities", D_Cities , SelExit );
else if (strcmp( params, "jumps", true) == 0)
{
new iStr[ 512 ];
new iStr2[ ] = Jump;
new iStr3[ ] = Jump2;
format( iStr, sizeof iStr, "%s%s", iStr2, iStr3 );
ShowDialog( playerid, Jumps , DIALOG_STYLE_LIST, "Jumps", iStr , SelExit );
}
return 1;
}
pawn Код:
C:\Users\Tayyab\Desktop\New folder (2)\gamemodes\GM.pwn(688) : error 017: undefined symbol "cmd_stunts"