Szerző Téma: Error  (Megtekintve 653 alkalommal)

Error
« Dátum: 2011. november 09. - 18:05:01 »
0 Show voters
[pawn]#include <a_samp>
#include <streamer>            //Akinek nem Streamer.inc + Plugin van az azt irja be..
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
   new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
new string[1000];
if(string(cmdtext, \"/help\", true) == 0)
{
 ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"Segítség/HELP\", \"Ird be /commands parancsokért\\nTelék: /Dmzones /StuntZones /OtherZones\\nWrite it in /commands for the commands\\nTeleports /StuntZones /DmZones /OtherZones\", \"Ok\", \"Ok\");
   return 1;
    }
if(string(cmdtext, \"/commands\", true) == 0)
ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"Server Commands/Parancsok:\", \"/Teleports /Afk /Back /Kill /BuyHealth /BuyArmour /Pm\\n/fix /Lock /Unlock /flip /NRG\\n/Parachute /Flowers /Report /CountDown /NightVision /animlist /Infrared\", \"Ok\", \"Ok\");
    return 1;
    }
if(string(cmdtext, \"/stuntzones\", true) == 0)
{
  ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"Server $tuntok:\", \"/Bigjump /BigJump2 /LStower /BuldingJump /Chilliad\\n/Skatepark /SFAirport /HopDeHop\\n/Wajtoair /WallRide /Stadium\\n/MonsterCrash /FreeWay /DeadJump /WayToPiramide\\n/NRGParkour\\n/Upsidedown /aquapark /QuadParcour\", \"Ok\", \"Ok\");
      return 1;
    }
if (string(cmdtext, \"/dmzones\", true)==0)
{
ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"Server Deathmatchok:\", \"/Bloodringarena /RCwar /airbattle\\n/Derby /VehicleDM /Minigunmadness\\n/ShipMadness /GlassMadness /IslandDM\", \"Ok\", \"Ok\");
  return 1;
}
    if(string(cmdtext, \"/otherzones\", true) == 0)
{
    ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"OtherZones:\", \"/Home /tune1-4 /aa /DragRace /Karting /Dirt\\n/Trampoline /LSStation /SFStation /LVStation1 /LVStation2\\nLTTruckStop /DTruckStop /CTruckStop\\n/AdminCastle /PinkAutos /Drift /Bounce /CarSumo\", \"Ok\", \"Ok\");
}
   return 1;
}
return 0;
}
[/pawn]
Elmondanátok ebbe mi a ge** a hiba grrrrrrr
[pawn]C:\\Documents and Settings\\Admin\\Asztal\\prO SerVer\\filterscripts\\dialog.pwn(22) : warning 217: loose indentation
C:\\Documents and Settings\\Admin\\Asztal\\prO SerVer\\filterscripts\\dialog.pwn(26) : error 012: invalid function call, not a valid address
C:\\Documents and Settings\\Admin\\Asztal\\prO SerVer\\filterscripts\\dialog.pwn(26) : warning 215: expression has no effect
C:\\Documents and Settings\\Admin\\Asztal\\prO SerVer\\filterscripts\\dialog.pwn(26) : warning 215: expression has no effect
C:\\Documents and Settings\\Admin\\Asztal\\prO SerVer\\filterscripts\\dialog.pwn(26) : warning 215: expression has no effect
C:\\Documents and Settings\\Admin\\Asztal\\prO SerVer\\filterscripts\\dialog.pwn(26) : error 001: expected token: \";\", but found \")\"
C:\\Documents and Settings\\Admin\\Asztal\\prO SerVer\\filterscripts\\dialog.pwn(26) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Admin\\Asztal\\prO SerVer\\filterscripts\\dialog.pwn(26) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
4 Errors.
[/pawn]
« Utoljára szerkesztve: 2011. november 09. - 18:06:40 írta _]->xTreme<-[_ »

Error
« Válasz #1 Dátum: 2011. november 09. - 18:10:16 »
0 Show voters
[pawn]#include <a_samp>
#include <streamer>            //Akinek nem Streamer.inc + Plugin van az azt irja be..
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/bandakapu\", cmdtext, true) == 0)
{
    ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"Segítség/HELP\", \"Ird be /commands parancsokért\\nTelék: /Dmzones /StuntZones /OtherZones\\nWrite it in /commands for the commands\\nTeleports /StuntZones /DmZones /OtherZones\", \"Ok\", \"Ok\");
return 1;
    }
if (strcmp(\"/bandakapu\", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"Server Commands/Parancsok:\", \"/Teleports /Afk /Back /Kill /BuyHealth /BuyArmour /Pm\\n/fix /Lock /Unlock /flip /NRG\\n/Parachute /Flowers /Report /CountDown /NightVision /animlist /Infrared\", \"Ok\", \"Ok\");
    return 1;
    }
if (strcmp(\"/bandakapu\", cmdtext, true) == 0)
{
  ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"Server $tuntok:\", \"/Bigjump /BigJump2 /LStower /BuldingJump /Chilliad\\n/Skatepark /SFAirport /HopDeHop\\n/Wajtoair /WallRide /Stadium\\n/MonsterCrash /FreeWay /DeadJump /WayToPiramide\\n/NRGParkour\\n/Upsidedown /aquapark /QuadParcour\", \"Ok\", \"Ok\");
      return 1;
      }
if (strcmp(\"/bandakapu\", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"Server Deathmatchok:\", \"/Bloodringarena /RCwar /airbattle\\n/Derby /VehicleDM /Minigunmadness\\n/ShipMadness /GlassMadness /IslandDM\", \"Ok\", \"Ok\");
return 1;
}
if (strcmp(\"/bandakapu\", cmdtext, true) == 0)
{
    ShowPlayerDialog(playerid, 10005, DIALOG_STYLE_MSGBOX, \"OtherZones:\", \"/Home /tune1-4 /aa /DragRace /Karting /Dirt\\n/Trampoline /LSStation /SFStation /LVStation1 /LVStation2\\nLTTruckStop /DTruckStop /CTruckStop\\n/AdminCastle /PinkAutos /Drift /Bounce /CarSumo\", \"Ok\", \"Ok\");
   return 1;
}
return 0;
}
[/pawn]

Nem elérhető Sheet

  • 1508
  • Támogató
    • Profil megtekintése
Error
« Válasz #2 Dátum: 2011. november 09. - 18:11:01 »
0 Show voters
[pawn]if(string(cmdtext, \"/help\", true) == 0)[/pawn]
HELYETT
[pawn]if(strcmp(cmdtext, \"/help\", true) == 0)[/pawn]
Ugyanígy a többinél is

Error
« Válasz #3 Dátum: 2011. november 09. - 18:21:39 »
0 Show voters
Kössz haver  ;D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal