Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

5 errors no solution yet....!

$
0
0
I am trying to create a two page dialog and I am getting the following errors
[b]Errors:
Code:

C:\Users\user\Desktop\SANP!\Gamemodes\SATDM_v9.pwn(51290) : loose indentation
C:\Users\user\Desktop\SANP!\Gamemodes\SATDM_v9.pwn(51290) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\SANP!\Gamemodes\SATDM_v9.pwn(51290) : error 017: undefined symbol "dialogid"
C:\Users\user\Desktop\SANP!\Gamemodes\SATDM_v9.pwn(51291) : loose indentation
C:\Users\user\Desktop\SANP!\Gamemodes\SATDM_v9.pwn(51310) : error 017: undefined symbol "dialogid"
C:\Users\user\Desktop\SANP!\Gamemodes\SATDM_v9.pwn(51312) : error 017: undefined symbol "response"
C:\Users\user\Desktop\SANP!\Gamemodes\SATDM_v9.pwn(51314) : error 017: undefined symbol "showpage2"
Pawn compiler 3.2.3664                          Copyright (c) 1997-2017, ITB CompuPhase


5 Errors.

codes:
Code:

CMD:spdhelp(playerid, params[])
{
    #pragma unused params
    if(PlayerInfo[playerid][SPD] >= 1) {
        new string[1900];
        strcat(string, "\t---= General =---", 1900 );
        strcat(string, "\n/spdmembers - [Shows online SPD members]", 1900 );
        strcat(string, "\n/spdbase - [Teleports you to SPD base]", 1900 );
        strcat(string, "\n/spdafk - [SPD Afk]", 1900 );
        strcat(string, "\n/spdback - [SPD Back]", 1900 );
        strcat(string, "\n/spdc - [Set you colour to purple]", 1900 );
        strcat(string, "\n/spd - [SPD private chat]", 1900 );
        strcat(string, "\n/spdsay - [SPD public chat]", 1900 );
        strcat(string, "\n ", 1900 );
        strcat(string, "\\t---= Skins =---", 1900 );
        strcat(string, "\n/spdskin - [SPD skin id 29]", 1900 );
        strcat(string, "\n/spdskin1 - [SPD skin id 146]", 1900 );
        strcat(string, "\n/spdskin2 - [SPD skin id 298]", 1900 );
        strcat(string, "\n/spdskin3 - [SPD skin id 230]", 1900 );
        strcat(string, "\n/spdskin4 - [SPD skin id 144]", 1900 );
        strcat(string, "\n ", 1900 );
        strcat(string, "\\t---= Managers =---", 1900 );
        strcat(string, "\n/setspd (0-15) [set perm SPD rank]", 1900 );
        strcat(string, "\n/osetspd (0-15) [set perm SPD rank offline]", 1900 );
        strcat(string, "\n/settempspd (0-9) [set temp SPD rank]", 1900 );
        strcat(string, "\n/spdm [managment private chat]", 1900 );
        strcat(string, "\n/Credits: Armin for scripting | Shazam & Professor for modifying", 1900 );
        ShowPlayerDialog(playerid,3212, DIALOG_STYLE_MSGBOX, "SPD Commands", string, "Next","Close");
 public OnDialogResponse(playerid, dialogid, response)
        strcat(string, "\t---= Weaponds =---", 1900 );
        strcat(string, "\n/spdweaps - [Gives you SPD weaponds pack]", 1900 );
        strcat(string, "\n/spdsawn - [Disarm you and gives you sawn-off]", 1900 );
        strcat(string, "\n/spddeagle - [Disarm you and gives desert-deagle]", 1900 );
        strcat(string, "\n/spdm4 - [Disarm you and gives m4]", 1900 );
        strcat(string, "\n ", 1900 );
        strcat(string, "\t---= Vehicles =---", 1900 );
        strcat(string, "\n/spdcar - [spawn a Sultan]", 1900 );
        strcat(string, "\n/spdcar2 - [spawn a Bullet]", 1900 );
        strcat(string, "\n/spdcar3 - [spawn a Infernus]", 1900 );
        strcat(string, "\n/spdcar4 - [spawn a Hunley]", 1900 );
        strcat(string, "\n/spdcar5 - [spawn a Turismo]", 1900 );
        strcat(string, "\n/spdb - [spawn a NRG-500]", 1900 );
        strcat(string, "\n/spdv - [spawn a Vortex]", 1900 );
        strcat(string, "\n/spdboat - [spawn a Squallo]", 1900 );
        strcat(string, "\n/spdheli - [spawn a Maverick]", 1900 );
        strcat(string, "\n/spdu - [spawn a Hunter]", 1900 );
        strcat(string, "\n/spdy - [spawn a Hydra]", 1900 );
        strcat(string, "\n/spdr - [spawn a Rhino]", 1900 );
        if(dialogid == 3212)
        {
            if(response)
        {
      showpage2
        }
                }
    } else return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be SPD Member to use this command", "OK", "");
    return 1;}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>