Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ban cmd met reason dom foutje ofzo HELP

	// /ban [playerid]
if(strcmp(cmd, "/ban", true)==0)
{
	if (adminlevel[playerid] == 0) return PlayerUsedAdminCommand(playerid);
	new giveplayerid, reason[], uur, minuut, seconde;
	GetTime(uur,minuut,seconde);
	tmp = strtok(cmdtext, idx);
	  new BanS[128];
	if(!strlen(tmp))
	{
		SendClientMessage(playerid, COLOR_BASIC, "Gebruik: /ban [id] [reason]");
		return 1;  //Stopt het commando
	}
	giveplayerid = strval(tmp);

	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
	{
		SendClientMessage(playerid, COLOR_BASIC, "Gebruik: /ban [id] [reason]");
		return 1;  //Stopt het commando
	}
	reason[] = strval(tmp);
	if(!IsPlayerConnected(giveplayerid))
	{
		SendClientMessage(playerid, COLOR_BASIC, "Speler is niet online"); return 1;
	}
	SendClientMessage(playerid, COLOR_BASIC, "Speler verband");
	SendClientMessage(giveplayerid, COLOR_BASIC,"You are banned from the server!");
	SendClientMessage(giveplayerid, COLOR_BASIC,"If you think you are banned for nothing");
	SendClientMessage(giveplayerid, COLOR_BASIC,"Go to www.stuntland.tk and get CONTACT with the owner");
	  if (adminlevel[giveplayerid] == 2)
	{
		SendClientMessage(playerid, COLOR_BASIC, "Je kan niet iemand met een hoger level bannen");
	} else {
	format(BanS, sizeof(BanS), "you are banned by admin: %s, reason: %s, time: %s:%s:%s", playername, reason[], uur, minuut, seconde);
	BanEx(giveplayerid,BanS);
	}
	return 1;
}

C:\Documents and Settings\Server\Bureaublad\StuntLand.pwn(1245) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Server\Bureaublad\StuntLand.pwn(1245) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Server\Bureaublad\StuntLand.pwn(1245) : error 017: undefined symbol "uur"
C:\Documents and Settings\Server\Bureaublad\StuntLand.pwn(1245) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

hoe te fixen?

Edited by Crusher!!

Featured Replies

  • Author

daar kom ik niet verder mee het zit in die string dat "BanS"

die reason string en met die tijd "uur, minuut, seconde"

Edited by Crusher!!

  • Author

fixed.

ben geholpen door Fallout.

zo ist geworden


   // /ban [playerid] [reason]
   if(strcmp(cmd, "/ban", true)==0)
   {
       if (adminlevel[playerid] == 0) return PlayerUsedAdminCommand(playerid);
       new giveplayerid, uur, minuut, seconde, dag, maand, jaar, reason[256], BanS[128], BanBan[128];
       getdate(jaar,maand,dag);
       gettime(uur,minuut,seconde);
       tmp = strtok(cmdtext, idx);
       if(!strlen(tmp))
       {
           SendClientMessage(playerid, COLOR_BASIC, "Gebruik: /ban [id] [reason]");
           return 1;  //Stopt het commando
       }
       giveplayerid = strval(tmp);

       tmp = strtok(cmdtext, idx);
       if(!strlen(tmp))
       {
           SendClientMessage(playerid, COLOR_BASIC, "Gebruik: /ban [id] [reason]");
           return 1;  //Stopt het commando
       }
       reason = tmp;
       if(!IsPlayerConnected(giveplayerid))
       {
           SendClientMessage(playerid, COLOR_BASIC, "Speler is niet online"); return 1;
       }
       SendClientMessage(playerid, COLOR_BASIC, "Speler verband");
       SendClientMessage(giveplayerid, COLOR_BASIC,"You are banned from the server!");
       SendClientMessage(giveplayerid, COLOR_BASIC,"If you think you are banned for nothing");
       SendClientMessage(giveplayerid, COLOR_BASIC,"Go to www.stuntland.tk and get CONTACT with the owner");
       if (adminlevel[giveplayerid] == 2)
       {
           SendClientMessage(playerid, COLOR_BASIC, "Je kan niet iemand met een hoger level bannen");
       } else {
       	format(BanS, sizeof(BanS), "you are banned by admin: %s, reason: %s, time: %s:%s:%s, date: %s/%s/%s", playername, reason, uur, minuut, seconde, dag, maand, jaar);
		SendClientMessage(giveplayerid,COLOR_BASIC,BanS);
		format(BanBan, sizeof(BanBan), "admin: %s, reason: %s, time: %s:%s:%s, date: %s/%s/%s", playername, reason, uur, minuut, seconde, dag, maand, jaar);
       	BanEx(giveplayerid,BanBan);
       }
       return 1;
   }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.