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.

Product berekenen in pawno

Hoe bereken ik het product van een variabele in pawno?

	if( strcmp("/buycoke", cmdtext, true, 4) == 0)
{
	if(getCheckpointType(playerid) == CP_WAREHOUSE)
	{
	   	new tmp4[256], bankamount;
  			tmp4 = strtok(cmdtext, idx);
		bankamount = strval(tmp4);
		if(bankamount < 1)
		{
			SendClientMessage(playerid, 0xFF000AA, "You must enter an amount greater than 0!");
			return 1;
		}
		if(!strlen(tmp4))
		{
			SendClientMessage(playerid, 0xFF000AA, "USE: /withdraw [amount]");
			return 1;
		}
		new GM;
		GM = GetPlayerMoney(playerid);
		new Bought;
		Bought = bankamount x DrugMoney;
		if(GM < Bought) {
		SendClientMessage(playerid, COLOR_RED, "Not enough cash!");
		}
	}
}

C:\Jeroen\pawnobackup2\gamemodes\SanFierrosHeroes.pwn(2274) : error 001: expected token: ";", but found "-identifier-"
C:\Jeroen\pawnobackup2\gamemodes\SanFierrosHeroes.pwn(2274) : error 017: undefined symbol "x"
C:\Jeroen\pawnobackup2\gamemodes\SanFierrosHeroes.pwn(2274) : warning 215: expression has no effect
C:\Jeroen\pawnobackup2\gamemodes\SanFierrosHeroes.pwn(2715) : warning 203: symbol is never used: "IsPlayerInArea"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Featured Replies

Dat doe je niet met de 'x' maar met de asterisk, het sterretje. Het wordt dan:

Bought = bankamount*DrugMoney;

  • Author

OMG, ik was het blijkbaar vergeten :7

Bedankt he!

EDIT: 200 posts _O_

Edited by jovu123

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.