Jump 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.

4 errors

ik heb nog een fs met de cmd freeze maar er zitten nog 4 errors in kan iemand me helpen?

script zit in bijlage freeze.txt en als het kan even vertellen wat mis was dan weet ik voor volgende keer;)

bedankt alvast :tu:

Edited by tinyq

Featured Replies

if(strcmp(cmd,"/freeze", true) == 0)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
	SendClientMessage(playerid,COLOR_GREEN,"usage: /freeze [id]");
	return 1;
}
else
{
	if(!IsPlayerAdmin(playerid))
	{
		SendClientMessage(playerid,COLOR_GREEN,"Je bent geen Admin!");
		return 1;
	}
	else
	{
		new id = strval(tmp);
		if(!IsPlayerConnected(id))
		{
			SendClientMessage(playerid,COLOR_GREEN,"Verkeerde id of speler is niet aanwezig");
			return 1;
		}
		TogglePlayerControllable(id,0);
		SendClientMessage(id,COLOR_GREEN,"Je bent gefreezed door een Admin");
		return 1;
	}
}
}

new cmd[256];

new tmp[256];

new idx;

Moet je onder OnPlayerCommandText plaatsen.

En strtok is een functie die je appart in de script moet zetten zoek hem maar op samp forum als je hem nog niet hebt.

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

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.